From ca44a562f320688c449ef843a241a19d6e77524e Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Sat, 6 Oct 2018 19:57:53 -0700 Subject: [PATCH] send heartbeats every 30 seconds --- plugin/wakatime.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/wakatime.vim b/plugin/wakatime.vim index e68caeb..61c9b6d 100644 --- a/plugin/wakatime.vim +++ b/plugin/wakatime.vim @@ -53,7 +53,7 @@ let s:VERSION = '7.1.2' 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:send_buffer_seconds = 10 " seconds between sending buffered heartbeats + let s:send_buffer_seconds = 30 " seconds between sending buffered heartbeats let s:last_sent = localtime() let s:has_async = has('patch-7.4-2344') && exists('*job_start') let s:nvim_async = exists('*jobstart')