diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-06-25 11:35:39 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-06-25 11:35:39 +0800 |
commit | 9951c564414cf94a89880890faef600430865d12 (patch) | |
tree | f9d2e281a5004c8465db0fac68d0e7975d905d15 | |
parent | c6dfb4aad80c346e834fd785fa510baed49ac592 (diff) | |
download | pttbbs-9951c564414cf94a89880890faef600430865d12.tar pttbbs-9951c564414cf94a89880890faef600430865d12.tar.gz pttbbs-9951c564414cf94a89880890faef600430865d12.tar.bz2 pttbbs-9951c564414cf94a89880890faef600430865d12.tar.lz pttbbs-9951c564414cf94a89880890faef600430865d12.tar.xz pttbbs-9951c564414cf94a89880890faef600430865d12.tar.zst pttbbs-9951c564414cf94a89880890faef600430865d12.zip |
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@965 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/util/get.cs.flt.pl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pttbbs/util/get.cs.flt.pl b/pttbbs/util/get.cs.flt.pl new file mode 100644 index 00000000..9421abc4 --- /dev/null +++ b/pttbbs/util/get.cs.flt.pl @@ -0,0 +1,8 @@ +#!/usr/bin/perl +@r = split(' ', $t = `/usr/bin/vmstat -n 0 -c 5 1`); +open FH, '>/tmp/mrtg.cs'; +print FH (($r[52]+$r[69]+$r[86]+$r[103])/4); +close FH; +open FH, '>/tmp/mrtg.flt'; +print FH (($r[44]+$r[61]+$r[78]+$r[95])/4); +close FH; |