diff --git a/src/output.c b/src/output.c index 4fd5fff..ff1561d 100644 --- a/src/output.c +++ b/src/output.c @@ -321,7 +321,6 @@ static int output_xml(const int print_mac_addreses) { unsigned int i; struct range_t *range_p; - double range_size; struct shared_network_t *shared_p; struct output_helper_t oh; int ret; @@ -337,7 +336,6 @@ static int output_xml(const int print_mac_addreses) } range_p = ranges; - range_size = get_range_size(range_p); shared_p = shared_networks; fprintf(outfile, "\n"); @@ -374,12 +372,11 @@ static int output_xml(const int print_mac_addreses) } fprintf(outfile, "\t%s ", ntop_ipaddr(&range_p->first_ip)); fprintf(outfile, "- %s\n", ntop_ipaddr(&range_p->last_ip)); - fprintf(outfile, "\t%g\n", range_size); + fprintf(outfile, "\t%g\n", oh.range_size); fprintf(outfile, "\t%g\n", range_p->count); fprintf(outfile, "\t%g\n", range_p->touched); - fprintf(outfile, "\t%g\n", range_size - range_p->count); + fprintf(outfile, "\t%g\n", oh.range_size - range_p->count); range_p++; - range_size = get_range_size(range_p); fprintf(outfile, "\n"); } }