From 66dac0ee4aebc59a4997dc2c5f3c07ff63669647 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 15 Apr 2018 21:12:41 +0200 Subject: buildmaster/statistics.php: remove "uptime" info --- buildmaster/statistics.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/buildmaster/statistics.php b/buildmaster/statistics.php index c919f93..47f1418 100644 --- a/buildmaster/statistics.php +++ b/buildmaster/statistics.php @@ -56,7 +56,7 @@ $width = 1600; $height = 600; $border = 5; $legend_line_length = 10; -$legend_height = 4 * ImageFontHeight(5) + $legend_line_length; +$legend_height = 2 * ImageFontHeight(5) + $legend_line_length; $im = @ImageCreate ($width + $legend_line_length + $max_len * ImageFontWidth(5), $height + $legend_height) or die ("Cannot create new gd-image-stream"); @@ -123,8 +123,6 @@ function print_graph($data, $color) { ImageRectangle($im, $legend_line_length, 0, $width-1+$legend_line_length, $height-1, $foreground_color); -ImageString($im, 5, $legend_line_length, $height + 2*$legend_line_length + 2*ImageFontHeight(5), "( ".trim(shell_exec("uptime | sed 's|^.*\\s\\(load\\)|\\1|'"))." )", $foreground_color); - $xpos = $legend_line_length; foreach ($print_columns as $column) { print_graph($values[$column], $colors[$column]); -- cgit v1.2.3-70-g09d2