[PATCH] report negative size as 0
Hello!
Can you please apply attached patch to
https://buildd.debian.org/
to fix reporting negative size values, as seen on
https://buildd.debian.org/status/logs.php?pkg=ffmpeg&ver=7%3A3.4.2-1&arch=ia64
Thanks!
Signed-off-by: Anatoly Pugachev <matorola@gmail.com>
---
report negative size as 0
diff --git a/library.php b/library.php
index c4488e5..63560ea 100644
--- a/library.php
+++ b/library.php
@@ -602,6 +602,7 @@ function no_empty_text($text, $suffix="") {
function logsize($size) {
if (empty($size)) return $size;
+ if ($size < 0) return "0";
$sep = ' ';
$unit = null;
$units = array('B', 'KB', 'MB', 'GB', 'TB');
--
2.16.2
Reply to: