rename memoryUnits
It's not just used for memory sizes.
This commit is contained in:
parent
d1cce869ed
commit
8675b2b075
4 changed files with 10 additions and 10 deletions
|
@ -491,14 +491,14 @@ bandwidthMeter mtotalsize (MeterState (BytesProcessed old) before) (MeterState (
|
|||
, estimatedcompletion
|
||||
]
|
||||
where
|
||||
amount = roughSize' memoryUnits True 2 new
|
||||
amount = roughSize' committeeUnits True 2 new
|
||||
percentamount = case mtotalsize of
|
||||
Just (TotalSize totalsize) ->
|
||||
let p = showPercentage 0 $
|
||||
percentage totalsize (min new totalsize)
|
||||
in p ++ replicate (6 - length p) ' ' ++ amount
|
||||
Nothing -> amount
|
||||
rate = roughSize' memoryUnits True 0 bytespersecond ++ "/s"
|
||||
rate = roughSize' committeeUnits True 0 bytespersecond ++ "/s"
|
||||
bytespersecond
|
||||
| duration == 0 = fromIntegral transferred
|
||||
| otherwise = floor $ fromIntegral transferred / duration
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue