fixed bug in away function.

This commit is contained in:
Alan Hamlett 2013-07-10 00:05:24 -07:00
parent 638c32fd77
commit 0860980e16
2 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,5 @@
vim-wakatime 0.2.1
==================
vim-wakatime
============
Automatic time tracking for Vim.

View file

@ -139,8 +139,8 @@ let s:VERSION = '0.2.1'
return 0
endfunction
function! s:Away(now, prev)
let duration = a:now - a:prev
function! s:Away(now, last)
let duration = a:now - a:last[1]
let units = 'seconds'
if duration > 59
let duration = round(duration / 60)