mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
Linux: overhaul io process fields
- avoid UBSAN conversions - print N/A on no data (i.e. as unprivileged user) - fix rate calculation to show bytes (instead of a thousandth) - print bytes as human number (i.e. 8MB) instead of 8388608 - stabilize sorting by adjusting NAN values to very tiny negative number
This commit is contained in:

committed by
BenBE

parent
fee744abd2
commit
fdaa15bd8d
@ -81,15 +81,31 @@ typedef struct LinuxProcess_ {
|
||||
long m_drs;
|
||||
long m_lrs;
|
||||
long m_dt;
|
||||
|
||||
/* Data read (in kilobytes) */
|
||||
unsigned long long io_rchar;
|
||||
|
||||
/* Data written (in kilobytes) */
|
||||
unsigned long long io_wchar;
|
||||
|
||||
/* Number of read(2) syscalls */
|
||||
unsigned long long io_syscr;
|
||||
|
||||
/* Number of write(2) syscalls */
|
||||
unsigned long long io_syscw;
|
||||
|
||||
/* Storage data read (in kilobytes) */
|
||||
unsigned long long io_read_bytes;
|
||||
|
||||
/* Storage data written (in kilobytes) */
|
||||
unsigned long long io_write_bytes;
|
||||
|
||||
/* Storgae data cancelled (in kilobytes) */
|
||||
unsigned long long io_cancelled_write_bytes;
|
||||
unsigned long long io_rate_read_time;
|
||||
unsigned long long io_rate_write_time;
|
||||
|
||||
/* Point in time of last io scan (in seconds elapsed since the Epoch) */
|
||||
unsigned long long io_last_scan_time;
|
||||
|
||||
double io_rate_read_bps;
|
||||
double io_rate_write_bps;
|
||||
#ifdef HAVE_OPENVZ
|
||||
|
Reference in New Issue
Block a user