fixed some issues with the rounding on floats in the JS

This commit is contained in:
UpstreamData
2022-03-07 09:32:06 -07:00
parent f3710f618e
commit 7dd00954e4
2 changed files with 3 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ ws.onmessage = function(event) {
if (minerDataChart.data.labels.length > 50) minerDataChart.data.labels.shift();
if (minerDataChart.data.datasets[0].data.length > 50) minerDataChart.data.datasets[0].data.shift();
minerDataChart.data.labels.push(datetime.toLocaleString(luxon.DateTime.TIME_WITH_SECONDS));
minerDataChart.data.datasets[0].data.push(total_hashrate);
minerDataChart.data.datasets[0].data.push(total_hashrate.toFixed(2));
minerDataChart.update();
}
};