summaryrefslogtreecommitdiff
path: root/cpuload.pl
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2010-11-07 11:16:26 +0000
committerPaul Buetow <paul@buetow.org>2010-11-07 11:16:26 +0000
commit8f218f6d690646a1c9e095029521935f9787e093 (patch)
treefb331b63f1a1b8e3b3531aed4aaa4b32a97c595a /cpuload.pl
parent8616ce2871f0dff62a9bb240cd070c8c7a3db504 (diff)
added undefined
Diffstat (limited to 'cpuload.pl')
-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}) {