in reply to Finding out Processor Usage
my $info = `uptime`; ($avg_1, $avg_5, $avg_15) = $info =~ /load average:\s+(\S+),\s+(\S+),\ +s+(\S+)/; print "$avg_1, $avg_5, $avg_15\n";
-Mark
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Finding out Processor Usage
by tachyon (Chancellor) on Apr 11, 2004 at 00:32 UTC | |
|
Re: Re: Finding out Processor Usage
by stvn (Monsignor) on Apr 10, 2004 at 23:32 UTC | |
by tachyon (Chancellor) on Apr 11, 2004 at 00:26 UTC | |
by insensate (Hermit) on Apr 11, 2004 at 00:16 UTC |