logovani min. rychlosti dane tridy rychlosti do logu - bude zpracovano v rocnich...
authorxchaos <xchaos@251d49ef-1d17-4917-a970-b30cf55b089b>
Mon, 7 Apr 2008 21:59:53 +0000 (21:59 +0000)
committerxchaos <xchaos@251d49ef-1d17-4917-a970-b30cf55b089b>
Mon, 7 Apr 2008 21:59:53 +0000 (21:59 +0000)
git-svn-id: https://dev.arachne.cz/repos/prometheus/trunk@73 251d49ef-1d17-4917-a970-b30cf55b089b

prometheus.c

index 37625373453ec61d986f4368b89d02fea7e6e049..cd7dc2cca1951c7aa47bf2b78df08057eee8e704 100644 (file)
@@ -1,13 +1,13 @@
-/* =============================================================== */\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
              ludva, 20071227\r
 \r
    Prometheus QoS is free software; you can redistribute it and/or\r
@@ -33,7 +33,7 @@
 \r
 #include "cll1-0.6.h"\r
 \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
 \r
 /* ======= All path names are defined hear (for RPM patch) =======  */\r
 \r
@@ -852,7 +852,7 @@ Credit: CZFree.Net, Martin Devera, Netdave, Aquarius, Gandalf\n\n",version);
     ip->min=atoi(substring);\r
     if(ip->min<=0)\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
      ip->min=free_min;\r
     }\r
     if(ip->max<=ip->min)\r
@@ -1367,7 +1367,8 @@ Credit: CZFree.Net, Martin Devera, Netdave, Aquarius, Gandalf\n\n",version);
     iplog=fopen(str,"a");\r
     if(iplog)\r
     {\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
      fclose(iplog);\r
     }\r
    }\r
This page took 0.170811 seconds and 4 git commands to generate.