Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/buildmaster
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-04-15 21:12:41 +0200
committerErich Eckner <git@eckner.net>2018-04-15 21:12:41 +0200
commit66dac0ee4aebc59a4997dc2c5f3c07ff63669647 (patch)
tree2f1b323a100d9dc94eb72e47894bfdb401262bda /buildmaster
parent00c50ba7e3e57cd639c7e724038e4017794190f1 (diff)
buildmaster/statistics.php: remove "uptime" info
Diffstat (limited to 'buildmaster')
-rw-r--r--buildmaster/statistics.php4
1 files changed, 1 insertions, 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]);