summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcpuload.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpuload.pl b/cpuload.pl
index 3ebfc25..361819d 100755
--- a/cpuload.pl
+++ b/cpuload.pl
@@ -168,6 +168,8 @@ sub graph_stats ($$) {
for my $key (sort keys %STATS) {
my ($host, $name) = split ';', $key;
+ next unless defined $STATS{$key};
+
my %stat = map { my ($k, $v) = split '='; $k => $v } split ';', $STATS{$key};
unless (exists $prev_stats{$key}) {