server: rTorrent: round addtime to integer

This commit is contained in:
Jesse Chan
2020-10-19 21:46:31 +08:00
parent 96c754ddeb
commit 9cefa85f71
@@ -96,7 +96,7 @@ class RTorrentClientGatewayService extends ClientGatewayService {
additionalCalls.push(`d.custom1.set=${encodeTags(tags)}`);
}
additionalCalls.push(`d.custom.set=addtime,${Date.now() / 1000}`);
additionalCalls.push(`d.custom.set=addtime,${Math.round(Date.now() / 1000)}`);
return {
methodName: start ? 'load.start' : 'load.normal',