mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-18 00:37:01 +00:00
backup counting: fix output regression
The backup count was not printed at all. This bug was introduced in version 2.17 (May 2012) when the uthash was taken in use. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
3471c91796
commit
f1411858cb
4 changed files with 23 additions and 26 deletions
|
|
@ -44,6 +44,7 @@
|
|||
|
||||
# include <config.h>
|
||||
# include <arpa/inet.h>
|
||||
# include <stdbool.h>
|
||||
# include <stddef.h>
|
||||
# include <stdio.h>
|
||||
# include <string.h>
|
||||
|
|
@ -101,6 +102,7 @@ struct configuration_t {
|
|||
int reverse_order;
|
||||
char *output_file;
|
||||
int output_limit[2];
|
||||
bool backups_found;
|
||||
double warning;
|
||||
double critical;
|
||||
};
|
||||
|
|
@ -173,12 +175,6 @@ struct range_t *ranges;
|
|||
unsigned int num_ranges;
|
||||
/* \var leases Pointer holding all leases. */
|
||||
struct leases_t *leases;
|
||||
/* \var num_leases FIXME: not in use, remove */
|
||||
unsigned long int num_leases;
|
||||
/* \var num_touches FIXME: not in use, remove */
|
||||
unsigned long int num_touches;
|
||||
/* \var num_backups FIXME: not in use, remove */
|
||||
unsigned long int num_backups;
|
||||
|
||||
/* Function prototypes */
|
||||
int prepare_memory(void);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue