]> arthur.barton.de Git - netdata.git/blobdiff - web/index.html
new Date().getTime() to Date.now(); #1281
[netdata.git] / web / index.html
index e6079e2d1b465bfb6cf8d982ac4bd7c2794cbde2..e8e0b18c90319f6c4d79d85db1569a454ee6d23d 100644 (file)
             }
 
             // find the proper family of each alarm
-            var now = new Date().getTime();
+            var now = Date.now();
             var x;
             var count_active = 0;
             var count_all = 0;
     function notifyForUpdate(force) {
         versionLog('<p>checking for updates...</p>');
 
-        var now = new Date().getTime();
+        var now = Date.now();
 
         if(typeof force === 'undefined' || force !== true) {
             var last = loadLocalStorage('last_update_check');