[PATCH] testbot/LibvirtTool: Remove the duplicate units after the elapsed time.

Francois Gouget fgouget at codeweavers.com
Wed Jul 11 04:30:52 CDT 2018


The string returned by PrettyElapsed() already includes the time unit
since it's needed for durations over 1 minute to be readable.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 testbot/bin/LibvirtTool.pl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/testbot/bin/LibvirtTool.pl b/testbot/bin/LibvirtTool.pl
index 3805c2bcf..e6742f4c3 100755
--- a/testbot/bin/LibvirtTool.pl
+++ b/testbot/bin/LibvirtTool.pl
@@ -344,7 +344,7 @@ sub Monitor()
         return 1 if (ChangeStatus("offline", "off", "done"));
         NotifyAdministrator("The $VMKey VM is working again",
                             "The $VMKey VM started working again after ".
-                            PrettyElapsed($Start) ." seconds.");
+                            PrettyElapsed($Start) .".");
         return 0;
       }
     }
@@ -489,6 +489,6 @@ else
   Error("Unsupported action $Action!\n");
   $Rc = 1;
 }
-LogMsg "$Action on $VMKey completed in ", PrettyElapsed($Start), " s\n";
+LogMsg "$Action on $VMKey completed in ", PrettyElapsed($Start), "\n";
 
 exit $Rc;
-- 
2.18.0




More information about the wine-devel mailing list