-/* =============================================================== */\r
-/* == Prometheus QoS - you can "steal fire" from your ISP == */\r
-/* == "fair-per-IP" quality of service (QoS) utility == */\r
-/* == requires Linux 2.4.x or 2.6.x with HTB support == */\r
-/* == Copyright(C) 2005-2008 Michael Polak (xChaos) == */\r
-/* == iptables-restore support Copyright(C) 2007-2008 ludva == */\r
-/* == Credit: CZFree.Net,Martin Devera,Netdave,Aquarius,Gandalf == */\r
-/* =============================================================== */\r
-\r
-/* Modified: xChaos, 20080205\r
+ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */\r
+ /* Prometheus QoS - you can "steal fire" from your ISP */\r
+/* "fair-per-IP" quality of service (QoS) utility */\r
+/* requires Linux 2.4.x or 2.6.x with HTB support */\r
+/* Copyright(C) 2005-2008 Michael Polak (xChaos) */\r
+/* iptables-restore support Copyright(C) 2007-2008 ludva */\r
+/* Credit: CZFree.Net,Martin Devera,Netdave,Aquarius,Gandalf */\r
+/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */\r
+\r
+/* Modified: xChaos, 20080407\r
ludva, 20071227\r
\r
Prometheus QoS is free software; you can redistribute it and/or\r
\r
#include "cll1-0.6.h"\r
\r
-const char *version="0.7.8.2"; /*0.7.9 will be last development, 0.8.0 first stable */\r
+const char *version="0.7.9.1"; /*0.7.9 will be last development, 0.8.0 first stable */\r
\r
/* ======= All path names are defined hear (for RPM patch) ======= */\r
\r
ip->min=atoi(substring);\r
if(ip->min<=0)\r
{\r
- printf(" %s: Illegal value of minimum bandwidth 0 kbps, using %d kbps\n",s\r
+ printf(" %s: Illegal value of minimum bandwidth 0 kbps, using %d kbps\n",str,free_min);\r
ip->min=free_min;\r
}\r
if(ip->max<=ip->min)\r
iplog=fopen(str,"a");\r
if(iplog)\r
{\r
- fprintf(iplog,"%ld\t%s\t%Lu\t%Lu\t%Lu\t%Lu\t%s",time(NULL),ip->name,ip->traffic, ip->direct, ip->proxy, ip->upload,d);\r
+ fprintf(iplog,"%ld\t%s\t%Lu\t%Lu\t%Lu\t%Lu\t%d\t%s",\r
+ time(NULL),ip->name,ip->traffic,ip->direct,ip->proxy,ip->upload,ip->min,d); /* d = date*/\r
fclose(iplog);\r
}\r
}\r