Hello everyone!

Upon poking around with some vicious widgets, I stumbled upon a small
feature I'd like to have. I could easily use my own modified version of
the widget itself, but I thought sharing the idea with you would be a
good idea before doing that.

dio.lua takes data from /proc/diskstats. AFAIK that file contains total
read and write counts, thus why we are using the differential.  Makes
sense. What about providing a total read/write count for the widget as
well, more or less like net.lua does?

For instance, for net.lua we have "tx" and "rx", and then we work out
"up" and "down" from these values. In dio.lua, we could do the same
before working out "read" and "write". (Just as well, is "total"
necessary? It can be easily obtained from the other two values in
rc.lua)

Regards.

-- 
Daniel Martí - [email protected] - GPG 0x58BF72C3

Attachment: pgpWWx0MAmhzF.pgp
Description: PGP signature

Reply via email to