Update http.js

This commit is contained in:
Namhyeon Go 2022-05-06 17:33:50 +09:00 committed by GitHub
parent e3505e8cba
commit a9162717d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;