commit | 0a839f308177e95c4c45c41ee1d4fa2b8f231f24 | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Thu Apr 26 09:02:34 2007 +0200 |
committer | Jens Axboe <jens.axboe@oracle.com> | Thu Apr 26 09:02:34 2007 +0200 |
tree | fddfb17571948d4a9a0a3d4371a516f01d475aaa | |
parent | 733ed597a79e118bc2480974a4dc4676f2edede1 [diff] [blame] |
Disk stat improvements Add an option to disable the disk stats. And only dump the disk stat header, if we actually have stats to show. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/diskutil.c b/diskutil.c index 11d676f..bbaa22d 100644 --- a/diskutil.c +++ b/diskutil.c
@@ -313,6 +313,9 @@ struct disk_util *du; double util; + if (list_empty(&disk_list)) + return; + log_info("\nDisk stats (read/write):\n"); list_for_each(entry, &disk_list) {