3.0: added 'nvidia' graph

This commit is contained in:
Jordi Sanfeliu 2012-12-03 19:47:08 +01:00
parent a40b112dde
commit babcb382da
1 changed files with 2 additions and 1 deletions

View File

@ -20,7 +20,7 @@
package nvidia; package nvidia;
#use strict; use strict;
use warnings; use warnings;
use Monitorix; use Monitorix;
use RRDs; use RRDs;
@ -264,6 +264,7 @@ sub nvidia_cgi {
"-r $tf->{res}"); "-r $tf->{res}");
$err = RRDs::error; $err = RRDs::error;
print("ERROR: while fetching $rrd: $err\n") if $err; print("ERROR: while fetching $rrd: $err\n") if $err;
my $line1;
my $line2; my $line2;
my $line3; my $line3;
print(" <pre style='font-size: 12px; color: $colors->{fg_color}';>\n"); print(" <pre style='font-size: 12px; color: $colors->{fg_color}';>\n");