set last sent to current time to prevent sending heartbeats when first opening vim

This commit is contained in:
Alan Hamlett 2017-05-16 21:00:44 -07:00
parent 820059e82d
commit af236232a6
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ let s:VERSION = '5.0.1'
let s:local_cache_expire = 10 " seconds between reading s:data_file
let s:last_heartbeat = {'last_activity_at': 0, 'last_heartbeat_at': 0, 'file': ''}
let s:heartbeats_buffer = []
let s:last_sent = 0
let s:last_sent = localtime()
" For backwards compatibility, rename wakatime.conf to wakatime.cfg
if !filereadable(s:config_file)