From 41e6842775eb6a6f66a0357c7bb5391ac968d40c Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 16 Oct 2017 11:31:21 +0000 Subject: [PATCH] #1637: doh * performance.now() value is already in milliseconds! * fix Date.now fallback (was an invalid call) git-svn-id: https://xpra.org/svn/Xpra/trunk@17194 3bb7dfac-3a0b-4e04-842a-767bc560f471 --- src/html5/js/Utilities.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/html5/js/Utilities.js b/src/html5/js/Utilities.js index bb71cd6a9c..3165de8056 100644 --- a/src/html5/js/Utilities.js +++ b/src/html5/js/Utilities.js @@ -340,9 +340,9 @@ var Utilities = { monotonicTime : function() { if (performance) { - return Math.round(performance.now()*1000.0); + return Math.round(performance.now()); } - return Date().now(); + return Date.now(); }, StringToUint8 : function(str) {