From 167971af3424026e4abac48395e816d5160862e1 Mon Sep 17 00:00:00 2001 From: webworker01 Date: Sun, 2 Sep 2018 08:19:40 -0400 Subject: [PATCH] decimal format diff --- libs/networkStats.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/networkStats.js b/libs/networkStats.js index 12572fe..08fcbaa 100644 --- a/libs/networkStats.js +++ b/libs/networkStats.js @@ -70,7 +70,7 @@ function SetupForStats(logger, poolOptions, setupFinished) { finalRedisCommands.push(['hset', coin + ':stats', 'networkBlocks', result[0].response.blocks]); } if (result[0].response.difficulty !== null) { - finalRedisCommands.push(['hset', coin + ':stats', 'networkDiff', result[0].response.difficulty]); + finalRedisCommands.push(['hset', coin + ':stats', 'networkDiff', result[0].response.difficulty.toFixed(2)]); } if (result[0].response.networkhashps !== null) { finalRedisCommands.push(['hset', coin + ':stats', 'networkSols', result[0].response.networkhashps]);