diff options
author | Pim van den Berg | 2009-12-31 11:42:14 +0100 |
---|---|---|
committer | Pim van den Berg | 2009-12-31 12:39:43 +0100 |
commit | 853a4e939c99fb683983d947f4267bf249f7c05e (patch) | |
tree | cfffabaa43f218fbc29c2b00cc7ceb36168a8b90 /plugin/cpu.php | |
parent | replace duplicate code by function rrd_options (diff) | |
download | apt-panopticon_cgp-853a4e939c99fb683983d947f4267bf249f7c05e.zip apt-panopticon_cgp-853a4e939c99fb683983d947f4267bf249f7c05e.tar.gz apt-panopticon_cgp-853a4e939c99fb683983d947f4267bf249f7c05e.tar.bz2 apt-panopticon_cgp-853a4e939c99fb683983d947f4267bf249f7c05e.tar.xz |
always show 'on $host' in the rrd title
'on $host' doesn't have to be added manually to rrd_title anymore.
Diffstat (limited to 'plugin/cpu.php')
-rw-r--r-- | plugin/cpu.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/cpu.php b/plugin/cpu.php index 5f688f4..4cc74f6 100644 --- a/plugin/cpu.php +++ b/plugin/cpu.php | |||
@@ -55,7 +55,7 @@ $obj->width = $width; | |||
55 | $obj->heigth = $heigth; | 55 | $obj->heigth = $heigth; |
56 | $obj->seconds = $seconds; | 56 | $obj->seconds = $seconds; |
57 | 57 | ||
58 | $obj->rrd_title = "CPU-$pinstance usage on $host"; | 58 | $obj->rrd_title = sprintf('CPU-%s usage', $pinstance); |
59 | $obj->rrd_vertical = 'Jiffies'; | 59 | $obj->rrd_vertical = 'Jiffies'; |
60 | $obj->rrd_format = '%5.2lf'; | 60 | $obj->rrd_format = '%5.2lf'; |
61 | 61 | ||