[util/format] Tests and minor renaming
This commit is contained in:
parent
0f96f2727b
commit
8efa101380
4 changed files with 18 additions and 4 deletions
|
@ -61,7 +61,7 @@ class Module(core.module.Module):
|
|||
return ''
|
||||
except Exception:
|
||||
return ''
|
||||
return util.format.duration(estimate*60, shorten=True, suffix=True) # estimate is in minutes
|
||||
return util.format.duration(estimate*60, compact=True, unit=True) # estimate is in minutes
|
||||
|
||||
def capacity(self, widget):
|
||||
widget.set('capacity', -1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue