HAMMER Utility: Allow -b to specify bytes per second if no suffix is supplied
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 25 Feb 2009 17:32:36 +0000 (09:32 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 25 Feb 2009 17:32:36 +0000 (09:32 -0800)
sbin/hammer/hammer.8
sbin/hammer/hammer.c

index aa0ebb5..823bde0 100644 (file)
@@ -81,6 +81,7 @@ The bandwidth may be suffixed with
 or
 .Sq g
 to specify values in kilobytes, megabytes, and gigabytes per second.
+If no suffix is specified, bytes per second is assumed.
 .It Fl c Ar cyclefile
 When pruning and reblocking you can instruction
 .Nm
index fc5eb5b..4c5f4c5 100644 (file)
@@ -84,6 +84,9 @@ main(int ac, char **av)
                        case 'K':
                                BandwidthOpt *= 1024;
                                break;
+                       case '\0':
+                               /* bytes per second if no suffix */
+                               break;
                        default:
                                usage(1);
                        }