]> granicus.if.org Git - sysstat/commitdiff
iostat: Option -h also imply --human
authorSebastien GODARD <sysstat@users.noreply.github.com>
Thu, 17 Nov 2016 11:28:55 +0000 (12:28 +0100)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Thu, 17 Nov 2016 11:28:55 +0000 (12:28 +0100)
Using option -h with iostat will also display sizes in human readable
format.
Option -h is already intended to make a report easier to read by a human
(especially when devices names are very long).

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
iostat.c

index 86ec434719601c11f629a4d4a3d1acfae35561ce..9f07677821cb76ac3bff45a658cbb867da5ef563 100644 (file)
--- a/iostat.c
+++ b/iostat.c
@@ -1737,9 +1737,9 @@ int main(int argc, char **argv)
                                case 'h':
                                        /*
                                         * Display device utilization report
-                                        * in a human readable format.
+                                        * in a human readable format. Also imply --human.
                                         */
-                                       flags |= I_D_HUMAN_READ;
+                                       flags |= I_D_HUMAN_READ + I_D_UNIT;
                                        break;
 
                                case 'k':