Module: tools Branch: master Commit: 0be6b85a1f50e3728b6e6df9cbda25c9483d5724 URL: https://source.winehq.org/git/tools.git/?a=commit;h=0be6b85a1f50e3728b6e6df9...
Author: Francois Gouget fgouget@codeweavers.com Date: Wed Jan 3 12:45:58 2018 +0100
testbot/web: Fix display of time.count statistics.
This fixes the 'Task count' statistic.
Signed-off-by: Francois Gouget fgouget@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
testbot/web/Stats.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testbot/web/Stats.pl b/testbot/web/Stats.pl index 424d33e..d9f4381 100644 --- a/testbot/web/Stats.pl +++ b/testbot/web/Stats.pl @@ -122,7 +122,7 @@ sub _GetStatStr($$;$$) return "n/a" if (!$AllStats->{elapsed}); return sprintf('%.1f%', 100 * $Value / $AllStats->{elapsed}); } - if ($StatKey =~ /(?:\belapsed|.time)\b/) + if ($StatKey =~ /(?:\belapsed|.time(?!.count))/) { return _GetDuration($Value, $Flags & $NO_TIME); }