From fd3363912e0be224354fc22547b6b7f9174ee87d Mon Sep 17 00:00:00 2001 From: xchaos Date: Thu, 24 Jan 2013 12:25:46 +0000 Subject: [PATCH] formatting git-svn-id: https://dev.arachne.cz/repos/prometheus/trunk@216 251d49ef-1d17-4917-a970-b30cf55b089b --- parseiptables.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/parseiptables.c b/parseiptables.c index cc2daac..1f22d13 100644 --- a/parseiptables.c +++ b/parseiptables.c @@ -125,7 +125,11 @@ void get_traffic_statistics(const char *whichiptables, int ipv6) if(ipv6 && isipv6) { *isipv6=0; - printf("(IPv6) "); + printf("(IPv6) "); + } + else + { + printf("(IPv4) "); } if(proxyflag) @@ -141,7 +145,7 @@ void get_traffic_statistics(const char *whichiptables, int ipv6) printf("(down) "); } - printf("IP %s: %Lu MB (%ld pkts)\n", ipaddr, traffic, pkts); + printf("%s %Lu MB (%ld pkts)\n", ipaddr, traffic, pkts); if_exists(ip, ips, eqi(ip->addr,ipaddr)); else -- 2.30.2