diff --git a/scripts/ZoneMinder/lib/ZoneMinder/Server.pm b/scripts/ZoneMinder/lib/ZoneMinder/Server.pm index 2c48da009..1e383b4d1 100644 --- a/scripts/ZoneMinder/lib/ZoneMinder/Server.pm +++ b/scripts/ZoneMinder/lib/ZoneMinder/Server.pm @@ -85,7 +85,7 @@ sub CpuLoad { sub ReadStat { if (!open(STAT, '/proc/stat')) { Error("Enable to open /proc/stat: $!"); - return undef; + return undef; } my ($cpu_user, $cpu_nice, $cpu_sys, $cpu_idle); while () { @@ -95,6 +95,8 @@ sub ReadStat { } } close STAT; + + return ($cpu_user, $cpu_nice, $cpu_sys, $cpu_idle); } sub CpuUsage {