Skip to content

Commit 57705cf

Browse files
committed
Add less WakatimeHeartBeat requests #2810
1 parent 052c70b commit 57705cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

browser/lib/wakatime-plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ function sendWakatimeHeartBeat (storagePath, noteKey, storageName, isWrite, hasF
1111
return
1212
}
1313

14+
lastHeartbeat = new Date()
1415
// TODO: add --key sdasdsa-sdsad-asdasd-asdsa-asdasdadas from configuration UI or use ~/.wakatime.conf
1516
exec(`wakatime --file ${notePath} --project ${storageName} --plugin Boostnote-wakatime`, (error, stdOut, stdErr) => {
1617
if (error) {
1718
console.log(error)
1819
} else {
19-
lastHeartbeat = new Date()
2020
console.log('wakatime', 'isWrite', isWrite, 'hasChanges', hasFileChanges)
2121
}
2222
})

0 commit comments

Comments
 (0)