Skip to content

Commit

Permalink
#1637: doh
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
totaam committed Oct 16, 2017
1 parent 3c65956 commit 41e6842
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/html5/js/Utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 41e6842

Please sign in to comment.