fixed float format in printf
This commit is contained in:
parent
ae0c9cbbb9
commit
2b072d642f
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ let s:VERSION = '0.2.2'
|
||||||
if duration >= 60
|
if duration >= 60
|
||||||
let remainder = float2nr(round(duration)) % 60
|
let remainder = float2nr(round(duration)) % 60
|
||||||
if remainder > 0
|
if remainder > 0
|
||||||
let minutes = printf(" and %f minute", remainder)
|
let minutes = printf(" and %.f minute", remainder)
|
||||||
if remainder > 1
|
if remainder > 1
|
||||||
let minutes = minutes . 's'
|
let minutes = minutes . 's'
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue