Francois Gouget : testbot/TestAgent: Typographic fixes for the trace_speed () units.

Alexandre Julliard julliard at winehq.org
Thu May 15 15:13:55 CDT 2014


Module: tools
Branch: master
Commit: cc965a0f79b613f824448427ae7f28e234a4ca92
URL:    http://source.winehq.org/git/tools.git/?a=commit;h=cc965a0f79b613f824448427ae7f28e234a4ca92

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Thu May 15 15:55:32 2014 +0200

testbot/TestAgent: Typographic fixes for the trace_speed() units.

---

 testbot/lib/WineTestBot/TestAgent.pm |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/testbot/lib/WineTestBot/TestAgent.pm b/testbot/lib/WineTestBot/TestAgent.pm
index b22fb06..3c84d49 100644
--- a/testbot/lib/WineTestBot/TestAgent.pm
+++ b/testbot/lib/WineTestBot/TestAgent.pm
@@ -77,14 +77,14 @@ sub trace_speed($$)
         if ($Elapsed)
         {
             $Speed = $Bytes * 8 / $Elapsed / 1000;
-            $Speed = $Speed < 1000 ? sprintf(" (%.1fKb/s)", $Speed) :
-                                     sprintf(" (%.1fMb/s)", $Speed / 1000);
+            $Speed = $Speed < 1000 ? sprintf(" (%.1f kb/s)", $Speed) :
+                                     sprintf(" (%.1f Mb/s)", $Speed / 1000);
         }
         $Bytes = $Bytes < 8 * 1024 ? "$Bytes bytes" :
-                 $Bytes < 8 * 1024 * 1024 ? sprintf("%.1fKiB", $Bytes / 1024) :
-                 sprintf("%.1fMiB", $Bytes / 1024 / 1024);
-        $Elapsed = $Elapsed < 1 ? sprintf("%.1fms", $Elapsed * 1000) :
-                   sprintf("%.1fs", $Elapsed);
+                 $Bytes < 8 * 1024 * 1024 ? sprintf("%.1f KiB", $Bytes / 1024) :
+                 sprintf("%.1f MiB", $Bytes / 1024 / 1024);
+        $Elapsed = $Elapsed < 1 ? sprintf("%.1f ms", $Elapsed * 1000) :
+                   sprintf("%.1f s", $Elapsed);
         debug("Transferred $Bytes in $Elapsed$Speed\n");
     }
 }




More information about the wine-cvs mailing list