[libgtop/wip/diskio] Also display the flags value.



commit b7a684fbbc7647395fb1a458baa7b58a9f54e110
Author: Benoît Dejean <bdejean gmail com>
Date:   Fri Feb 24 09:04:06 2017 +0100

    Also display the flags value.

 examples/diskio.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/examples/diskio.c b/examples/diskio.c
index e52844a..60dd933 100644
--- a/examples/diskio.c
+++ b/examples/diskio.c
@@ -17,7 +17,7 @@ static void show_diskio(pid_t pid)
 
   printf("<%ld>\t", (long)pid);
 
-  printf("rchar : %lu, wchar : %lu, read_bytes : %lu, write_bytes : %lu\n", diskio.rchar, diskio.wchar, 
diskio.rbytes, diskio.wbytes);
+  printf("flags: %08lx rchar : %lu, wchar : %lu, read_bytes : %lu, write_bytes : %lu\n", (unsigned 
long)diskio.flags, diskio.rchar, diskio.wchar, diskio.rbytes, diskio.wbytes);
 
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]