only save last action when sending to wakatime-cli
This commit is contained in:
parent
f7138be15f
commit
0788628b95
1 changed files with 0 additions and 4 deletions
|
@ -126,10 +126,6 @@ let s:VERSION = '1.5.2'
|
||||||
let last = s:GetLastAction()
|
let last = s:GetLastAction()
|
||||||
if s:EnoughTimePassed(now, last) || targetFile != last[2]
|
if s:EnoughTimePassed(now, last) || targetFile != last[2]
|
||||||
call s:Api(targetFile, now, 0, last)
|
call s:Api(targetFile, now, 0, last)
|
||||||
else
|
|
||||||
if now - last[1] > 5
|
|
||||||
call s:SetLastAction(last[0], now, targetFile)
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue