From 8f218f6d690646a1c9e095029521935f9787e093 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 7 Nov 2010 11:16:26 +0000 Subject: added undefined --- cpuload.pl | 2 ++ 1 file changed, 2 insertions(+) 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}) { -- cgit v1.2.3