[FFmpeg-devel] [PATCH] fateserver: prevent division by 0, and therefore 500 error
Timothy Gu
timothygu99 at gmail.com
Thu Mar 6 01:41:07 CET 2014
... when no fate data is present.
Signed-off-by: Timothy Gu <timothygu99 at gmail.com>
---
index.cgi | 2 ++
1 file changed, 2 insertions(+)
diff --git a/index.cgi b/index.cgi
index 6c9c69c..1120b02 100755
--- a/index.cgi
+++ b/index.cgi
@@ -51,6 +51,8 @@ for my $slot (@slots) {
}
}
+ at reps or fail 'No data';
+
$allpass = 100 * $allpass / @reps;
$allfail = 100 * $allfail / @reps;
my $warn = 100 - $allpass - $allfail;
--
1.8.3.2
More information about the ffmpeg-devel
mailing list