From 3668f5099f4ee1dee4abfb0cbc41598321bb533e Mon Sep 17 00:00:00 2001 From: Mark Nadal Date: Tue, 11 Feb 2020 14:32:25 -0800 Subject: [PATCH] uptime decimal --- examples/stats.html | 2 +- test/mocha.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/stats.html b/examples/stats.html index a208286e..382888dc 100644 --- a/examples/stats.html +++ b/examples/stats.html @@ -50,7 +50,7 @@ $('#peers').text(data.peers.count); $('#time').text((data.peers.time / 1000 / 60).toFixed(0)); $('#nodes').text(data.node.count); - $('#hours').text((data.up.time / 60 / 60).toFixed(0)); + $('#hours').text((data.up.time / 60 / 60).toFixed(1)); Stats('memory').line.append(+new Date, data.memory.heapTotal / 1024 / 1024); try{ Stats('dam # in').line.append(+new Date, data.dam.in.count); }catch(e){} diff --git a/test/mocha.html b/test/mocha.html index e5af40c4..2e8e039a 100644 --- a/test/mocha.html +++ b/test/mocha.html @@ -33,7 +33,7 @@ console.log('async?', Gun.debug); } var run = mocha.run(function(a,b,c){ - document.body.prepend("MARK! REMEMBER TO REMOVE RETURN!");return; + //document.body.prepend("MARK! REMEMBER TO REMOVE RETURN!");return; var yes = confirm("REFRESH BROWSER FOR ASYNC TESTS?"); if(yes){ if(location.search){