From: Kevin L. <kev...@gm...> - 2008-01-13 09:02:12
|
Ok, one (hopefully) final update to the patch above. This addresses the last pair of use_spacer-affected prints that didn't use spaced_print. The patch is still written against svn 995. Kevin Lyles kev...@gm... On Jan 8, 2008 9:34 PM, Kevin Lyles <kev...@gm...> wrote: > Whoops...here's the real one. > > > > On Jan 8, 2008 5:26 PM, Kevin Lyles <kev...@gm...> wrote: > > Attached is a newer and much more complete version of my previous patch. > It still changes the behavior of human_readable and disk_io (though > differently), and also changes the way use_spacer works (although it should > still work as expected until you use the new syntax). Any feedback is > welcome. > > > > The patch applies cleanly to svn 995. > > > > Kevin Lyles > > > > > > > > > > > > On Jan 7, 2008 3:58 AM, Kevin Lyles < kev...@gm...> wrote: > > > > > This patch adds the short_units option, which shortens units to a single > character (kiB->k, GiB->G, etc.). > > > > > > It also cleans up human_readable and format_diskio. It does, however, > change their behavior somewhat. I'd like feedback on whether that's a good > thing. > > > > > > I can add back in the format change when the number is greater than 100, > though it would be for kilobytes and larger, not just megabytes. There's > still a change in width when you go over 1000, though--I'd like to address > that, but I don't have any good ideas about how without increasing the > default number of decimal places. Any suggestions? > > > > > > Thanks, > > > Kevin Lyles > > > kev...@gm... > > > > > > > > > |