~mdw
/
tripe
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mon/tripemon.in (xlate_bytes): Trim a character from the docstring.
[tripe]
/
mon
/
tripemon.in
diff --git
a/mon/tripemon.in
b/mon/tripemon.in
index
f5b8f8d
..
b65d8e1
100644
(file)
--- a/
mon/tripemon.in
+++ b/
mon/tripemon.in
@@
-1234,7
+1234,7
@@
def xlate_time(t):
return '%04d:%02d:%02d %02d:%02d:%02d (%.1f %s ago)' % \
(YY, MM, DD, hh, mm, ss, ago, unit)
def xlate_bytes(b):
return '%04d:%02d:%02d %02d:%02d:%02d (%.1f %s ago)' % \
(YY, MM, DD, hh, mm, ss, ago, unit)
def xlate_bytes(b):
- """Translate a
number of bytes
into something a human might want to read."""
+ """Translate a
raw byte count
into something a human might want to read."""
suff = 'B'
b = int(b)
for s in 'KMG':
suff = 'B'
b = int(b)
for s in 'KMG':