X-Git-Url: http://git.harvie.cz/?p=svn%2FPrometheus-QoS%2F.git;a=blobdiff_plain;f=prometheus.c;h=8c70bb0b86e7340f2feff6f13b3a1c47302fc75e;hp=59e2759d421023f2219a156c6993a5f1619cd215;hb=1f13bb8e59cd4f0c1a7bdfcde5599e5c0188d6c2;hpb=be96b71b6e1c6b1166173ec615e799960a38a909
diff --git a/prometheus.c b/prometheus.c
index 59e2759..8c70bb0 100644
--- a/prometheus.c
+++ b/prometheus.c
@@ -40,7 +40,7 @@ const char *version = "0.8.3-d";
/* C source code development versions ("beta"): 0.7.9-a, 0.8.1-b, etc. */
/* C source code release versions: 0.8.0, 0.8.2, 0.8.4, etc. */
-const char *stats_html_signature = "Statistics generated by Prometheus QoS version %s
GPL+Copyright(C)2005-2012 Michael Polak, Arachne Labs\n";
+const char *stats_html_signature = "Statistics generated by Prometheus QoS version %s
GPL+Copyright(C)2005-2012 Michael Polak, Arachne Labs\n";
/* ======= All path names are defined here (for RPM patch) ======= */
@@ -610,7 +610,7 @@ void get_traffic_statistics(void)
{
printf("(upload) ");
}
- printf("IP %s: %Lu M (%ld pkts)\n", ipaddr, traffic, pkts);
+ printf("IP %s: %Lu MB (%ld pkts)\n", ipaddr, traffic, pkts);
if_exists(ip,ips,eq(ip->addr,ipaddr));
else
@@ -656,8 +656,7 @@ void get_traffic_statistics(void)
}
}
}
-
- free(cmd);
+ free(cmd);
}
/* ========== This function executes, logs OR ALSO prints command ========== */
@@ -689,7 +688,7 @@ void run_restore(void)
string(restor,STRLEN);
/*-----------------------------------------------------------------*/
- printf("Running %s <%s ...\n",iptablesrestore,iptablesfile);
+ printf("Running %s <%s ...\n", iptablesrestore, iptablesfile);
/*-----------------------------------------------------------------*/
save_line("COMMIT");
@@ -918,13 +917,13 @@ void parse_ip_log(int argc, char **argv)
if(iplog->traffic)
{
fprintf(f, "%s