diff --git a/lib/gensens.pm b/lib/gensens.pm index 22786a8..1c7cf14 100644 --- a/lib/gensens.pm +++ b/lib/gensens.pm @@ -424,7 +424,7 @@ 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', 'bat', 'pwr', 'fan' or 'pct' graph + # determine if we are dealing with a 'temp', 'cpu', 'bat', 'pwr', 'fan', 'pct' or 'byt' graph if(index($ls[0], "temp") == 0) { $vlabel = $temp_scale; } elsif(index($ls[0], "cpu") == 0) { @@ -437,6 +437,8 @@ sub gensens_cgi { $vlabel = "RPM"; } elsif(index($ls[0], "pct") == 0) { $vlabel = "Percent (%)"; + } elsif(index($ls[0], "byt") == 0) { + $vlabel = "bytes"; } else { # not supported yet }