ControlScripts/clients/hrk: update parse_hrk.sh to parse dht-disabled log messages
authorP2P-Next User <p2p@p2p-next-04-201.grid.pub.ro>
Fri, 20 Aug 2010 15:04:27 +0000 (18:04 +0300)
committerP2P-Next User <p2p@p2p-next-04-201.grid.pub.ro>
Fri, 20 Aug 2010 15:04:27 +0000 (18:04 +0300)
ControlScripts/clients/hrk/parse_hrk.sh

index 6d19a9f..cd9d520 100755 (executable)
@@ -52,10 +52,10 @@ BEGIN       {
        if ($1 == "SLEEP")
                rel_time = rel_time + $2;
        else {
-               dlspeed = $6 + 0;
-               upspeed = $8 + 0;
-               download = $10 + 0;
-               size = $14 + 0;
+               dlspeed = $4 + 0;
+               upspeed = $6 + 0;
+               download = $8 + 0;
+               size = $12 + 0;
                percent = 100.0 * download / size;
 
                printf "%d %.2f %.2f %.2f\n", rel_time, percent, upspeed, dlspeed;