diff --git a/plugin/wakatime.vim b/plugin/wakatime.vim index 4ada306..c21bf51 100644 --- a/plugin/wakatime.vim +++ b/plugin/wakatime.vim @@ -156,7 +156,7 @@ let s:VERSION = '0.2.2' let duration = round(duration / 60) let units = 'minute' if duration >= 60 - let remainder = duration % 60 + let remainder = float2nr(round(duration)) % 60 if remainder > 0 let minutes = printf(" and %f minute", remainder) if remainder > 1