mirror of
https://github.com/netfun2000/lcd4linux.git
synced 2026-02-27 09:44:34 +08:00
[lcd4linux @ 2004-05-29 01:07:56 by reinelt]
bug in plugin_diskstats fixed git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@444 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
This commit is contained in:
@@ -46,7 +46,7 @@ Display CF633 {
|
||||
|
||||
Display Curses {
|
||||
Driver 'Curses'
|
||||
Size '20x4'
|
||||
Size '20x6'
|
||||
}
|
||||
|
||||
|
||||
@@ -149,7 +149,7 @@ Plugin Pop3 {
|
||||
Widget OS {
|
||||
class 'Text'
|
||||
expression '*** '.uname('sysname').' '.uname('release').' ***'
|
||||
width 16
|
||||
width 20
|
||||
align 'M'
|
||||
speed 100
|
||||
update tick
|
||||
@@ -220,10 +220,10 @@ Widget Disk {
|
||||
class 'Text'
|
||||
# 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
|
||||
#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)
|
||||
expression diskstats('.*', '.*_sectors', 500)
|
||||
prefix 'disk'
|
||||
postfix ' '
|
||||
width 10
|
||||
@@ -234,11 +234,11 @@ Widget Disk {
|
||||
|
||||
Widget DiskBar {
|
||||
class 'Bar'
|
||||
expression proc_stat::disk('.*', 'rblk', 500)
|
||||
expression2 proc_stat::disk('.*', 'wblk', 500)
|
||||
#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)
|
||||
expression diskstats('.*', 'read_sectors', 500)
|
||||
expression2 diskstats('.*', 'write_sectors', 500)
|
||||
length 14
|
||||
direction 'E'
|
||||
update tack
|
||||
@@ -431,14 +431,14 @@ Layout Default {
|
||||
Col1 'Load'
|
||||
Col11 'LoadBar'
|
||||
}
|
||||
# Row5 {
|
||||
# Col1 'Disk'
|
||||
# Col11 'DiskBar'
|
||||
# }
|
||||
# Row6 {
|
||||
# Col1 'Eth0'
|
||||
# Col11 'Eth0Bar'
|
||||
# }
|
||||
Row5 {
|
||||
Col1 'Disk'
|
||||
Col11 'DiskBar'
|
||||
}
|
||||
Row6 {
|
||||
Col1 'Eth0'
|
||||
Col11 'Eth0Bar'
|
||||
}
|
||||
}
|
||||
|
||||
Layout L24x8 {
|
||||
|
||||
Reference in New Issue
Block a user