[Resmon-devel] [resmon commit] r325 - branches/resmon2/lib/Core

svn-commit at lists.omniti.com svn-commit at lists.omniti.com
Sat Apr 24 17:18:21 EDT 2010


Author: jdixon
Date: 2010-04-24 17:18:21 -0400 (Sat, 24 Apr 2010)
New Revision: 325

Modified:
   branches/resmon2/lib/Core/Cpu.pm
Log:
fix

Modified: branches/resmon2/lib/Core/Cpu.pm
===================================================================
--- branches/resmon2/lib/Core/Cpu.pm	2010-04-24 20:34:49 UTC (rev 324)
+++ branches/resmon2/lib/Core/Cpu.pm	2010-04-24 21:18:21 UTC (rev 325)
@@ -69,13 +69,13 @@
     $output =~ s/^\s+//;
     $output =~ s/\s+/ /g;
     if ($osname eq 'solaris') {
-        @values = (split($output))[19..21];
+        @values = (split(/\s+/, $output))[19..21];
     } elsif ($osname eq 'linux') {
-        @values = (split($output))[12..14];
+        @values = (split(/\s+/, $output))[12..14];
     } elsif ($osname eq 'openbsd') {
         @values = (split(/\s+/, $output))[16..18];
     } elsif ($osname eq 'freebsd') {
-        @values = (split($output))[16..18];
+        @values = (split(/\s+/, $output))[16..18];
     } else {
         die "Unknown platform: $osname";
     }



More information about the Resmon-devel mailing list