diff --git a/lib/gensens.pm b/lib/gensens.pm index b6e69f7..25f7a4e 100644 --- a/lib/gensens.pm +++ b/lib/gensens.pm @@ -424,13 +424,15 @@ sub gensens_cgi { foreach my $sg (sort keys %{$gensens->{list}}) { my @ls = split(',', $gensens->{list}->{$sg}); - # determine if we are dealing with a 'temp', 'cpu' or 'bat' graph + # determine if we are dealing with a 'temp', 'cpu', 'bat' or 'pwr' graph if(index($ls[0], "temp") == 0) { $vlabel = $temp_scale; } elsif(index($ls[0], "cpu") == 0) { $vlabel = "Hz"; } elsif(index($ls[0], "bat") == 0) { $vlabel = "Charge"; + } elsif(index($ls[0], "pwr") == 0) { + $vlabel = "Watt"; } else { # not supported yet }