1 # $Id: usbhub.conf 730 2007-01-14 13:50:28Z michael $
2 # $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/usbhub.conf $
25 expression 2+(1+test::onoff(1))/2
30 expression 2+(1+test::onoff(2))/2
35 expression 2+(1+test::onoff(3))/2
40 expression 2+(1+test::onoff(4))/2
45 # Display network activity as pulse duration on the hub leds.
46 # currently configured to
48 # 0 % pulse width : traffic < exp(10) == 22kbyte/sec
49 # 50 % pulse width : traffic about exp(13.5) == 730kbyte/sec
50 # 100 % pulse width : traffic > exp(16) == 8886kbyte/sec
52 # Which is quite suitable for a 100mbit network.
56 expression (exp(10+test::bar(1,6,0,0.5)) < netdev('eth0', 'Rx_bytes', (6/netstep)*2*tick))?2:3
61 expression (exp(10+test::bar(2,6,0,0.5)) < netdev('eth0', 'Tx_bytes', (6/netstep)*2*tick))?2:3
65 # As above, but for disk read/writes, pwm for 0bytes/sec .. 33MB/sec (e^9 * 4096)
68 expression (exp(test::bar(3,9,0,diskstep)) < diskstats('sda', 'read_sectors', (9/diskstep)*2*tick))?2:3
73 expression (exp(test::bar(4,9,0,diskstep)) < diskstats('sda', 'write_sectors', (9/diskstep)*2*tick))?2:3