summaryrefslogtreecommitdiffstats
path: root/util/get.cs.flt.pl
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-06-25 11:35:39 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-06-25 11:35:39 +0800
commit8b95b780207789b0b5531429ee07027ab9ea85e2 (patch)
tree3dcbe3fa551b37649d7e6d488221fec905f9d518 /util/get.cs.flt.pl
parent1eeccd433b089504196bab3591d3145bd1c1240e (diff)
downloadpttbbs-8b95b780207789b0b5531429ee07027ab9ea85e2.tar
pttbbs-8b95b780207789b0b5531429ee07027ab9ea85e2.tar.gz
pttbbs-8b95b780207789b0b5531429ee07027ab9ea85e2.tar.bz2
pttbbs-8b95b780207789b0b5531429ee07027ab9ea85e2.tar.lz
pttbbs-8b95b780207789b0b5531429ee07027ab9ea85e2.tar.xz
pttbbs-8b95b780207789b0b5531429ee07027ab9ea85e2.tar.zst
pttbbs-8b95b780207789b0b5531429ee07027ab9ea85e2.zip
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@965 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util/get.cs.flt.pl')
-rw-r--r--util/get.cs.flt.pl8
1 files changed, 8 insertions, 0 deletions
diff --git a/util/get.cs.flt.pl b/util/get.cs.flt.pl
new file mode 100644
index 00000000..9421abc4
--- /dev/null
+++ b/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;