From a9162717d2bf18c2c721a1ae3a6cb48356a7fa53 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Fri, 6 May 2022 17:33:50 +0900 Subject: [PATCH] Update http.js --- lib/http.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/http.js b/lib/http.js index 2e12ab1..425b146 100644 --- a/lib/http.js +++ b/lib/http.js @@ -39,7 +39,7 @@ var HTTPObject = function(engine) { }, "unixnowms": function(diff) { // e.g. {unixnowms -300000} (milliseconds) var t = parseInt(diff); - return new Date().getTime() - t; + return Math.floor(new Date().getTime()) - t; } }; this.connectTimeout = 0;