aboutsummaryrefslogtreecommitdiffstats
path: root/lcd4linux.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-05-29 00:27:23 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-05-29 00:27:23 +0000
commit4749def80d9a775c8d0791fe322322f5d1425c95 (patch)
treeb0d6504b7d6326632626c09f978c464a1cff28f1 /lcd4linux.c
parentba5326cf8e6dd8051efadde4528e3aeb6e654fb2 (diff)
downloadlcd4linux-4749def80d9a775c8d0791fe322322f5d1425c95.tar.gz
[lcd4linux @ 2004-05-29 00:27:14 by reinelt]
added plugin_diskstats.c git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@443 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to '')
-rw-r--r--lcd4linux.conf.sample6
1 files changed, 6 insertions, 0 deletions
diff --git a/lcd4linux.conf.sample b/lcd4linux.conf.sample
index 85281c6..7b5ecb2 100644
--- a/lcd4linux.conf.sample
+++ b/lcd4linux.conf.sample
@@ -221,6 +221,9 @@ Widget Disk {
# disk.[rw]blk return blocks, we assume a blocksize of 512
# to get the number in kB/s we would do blk*512/1024, which is blk/2
expression (proc_stat::disk('.*', 'rblk', 500)+proc_stat::disk('.*', 'wblk', 500))/2
+ # with kernel 2.6, disk_io disappeared from /proc/stat but moved to /proc/diskstat
+ # therefore you have to use another function called 'diskstats':
+ # expression (diskstats('.*', '.*_sectors', 500)
prefix 'disk'
postfix ' '
width 10
@@ -233,6 +236,9 @@ Widget DiskBar {
class 'Bar'
expression proc_stat::disk('.*', 'rblk', 500)
expression2 proc_stat::disk('.*', 'wblk', 500)
+ # for kernel 2.6:
+ # expression diskstats('.*', 'read_sectors', 500)
+ # expression2 diskstats('.*', 'write_sectors', 500)
length 14
direction 'E'
update tack