diff options
Diffstat (limited to '')
-rw-r--r-- | plugin/sensors.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/sensors.php b/plugin/sensors.php index ddcf521..048f9f1 100644 --- a/plugin/sensors.php +++ b/plugin/sensors.php | |||
@@ -34,19 +34,19 @@ $obj->seconds = $seconds; | |||
34 | switch($type) { | 34 | switch($type) { |
35 | case 'fanspeed': | 35 | case 'fanspeed': |
36 | $obj->colors = '00ff00'; | 36 | $obj->colors = '00ff00'; |
37 | $obj->rrd_title = "Fanspeed ($pinstance) on $host"; | 37 | $obj->rrd_title = sprintf('Fanspeed (%s)', $pinstance); |
38 | $obj->rrd_vertical = 'RPM'; | 38 | $obj->rrd_vertical = 'RPM'; |
39 | $obj->rrd_format = '%5.1lf'; | 39 | $obj->rrd_format = '%5.1lf'; |
40 | break; | 40 | break; |
41 | case 'temperature': | 41 | case 'temperature': |
42 | $obj->colors = '0000ff'; | 42 | $obj->colors = '0000ff'; |
43 | $obj->rrd_title = "Temperature ($pinstance) on $host"; | 43 | $obj->rrd_title = sprintf('Temperature (%s)', $pinstance); |
44 | $obj->rrd_vertical = 'Celius'; | 44 | $obj->rrd_vertical = 'Celius'; |
45 | $obj->rrd_format = '%5.1lf%s'; | 45 | $obj->rrd_format = '%5.1lf%s'; |
46 | break; | 46 | break; |
47 | case 'voltage': | 47 | case 'voltage': |
48 | $obj->colors = 'ff0000'; | 48 | $obj->colors = 'ff0000'; |
49 | $obj->rrd_title = "Voltage ($pinstance) on $host"; | 49 | $obj->rrd_title = sprintf('Voltage (%s)', $pinstance); |
50 | $obj->rrd_vertical = 'Volt'; | 50 | $obj->rrd_vertical = 'Volt'; |
51 | $obj->rrd_format = '%5.1lf'; | 51 | $obj->rrd_format = '%5.1lf'; |
52 | break; | 52 | break; |