index : archweb32 | |
Archlinux32 website | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-04-15 21:12:41 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-04-15 21:12:41 +0200 |
commit | 66dac0ee4aebc59a4997dc2c5f3c07ff63669647 (patch) | |
tree | 2f1b323a100d9dc94eb72e47894bfdb401262bda /buildmaster | |
parent | 00c50ba7e3e57cd639c7e724038e4017794190f1 (diff) |
-rw-r--r-- | buildmaster/statistics.php | 4 |
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]); |