ControlScripts: fix hrk parse script
authorRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Mon, 20 Sep 2010 16:20:43 +0000 (18:20 +0200)
committerRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Mon, 20 Sep 2010 16:20:43 +0000 (18:20 +0200)
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;