repo.or.cz
/
metriccd.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
structure thermal devices
[metriccd.git]
/
client
/
meter
/
loadavg
blob
4df68424b609a4c05a42bdf6d0b79f22dbd86ce1
1
#!/usr/bin/env perl
2
3
require
"common.pl"
;
4
5
my
(
$loadavg_1m
,
$loadavg_5m
,
$loadavg_15m
,
undef
) =
split
/\s+/
,
file_get_line
(
"/proc/loadavg"
);
6
$
\
=
"
\n
"
;
7
print
"1m
$loadavg_1m
"
;
8
print
"5m
$loadavg_5m
"
;
9
print
"15m
$loadavg_15m
"
;