From 902535963d647581bf0969f40ce11e279f596e39 Mon Sep 17 00:00:00 2001 From: OpenAcousticDevices Date: Mon, 11 Sep 2017 14:31:05 +0100 Subject: [PATCH] Fix spelling error --- lifeDisplay.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lifeDisplay.js b/lifeDisplay.js index 65c88a2..a85b682 100644 --- a/lifeDisplay.js +++ b/lifeDisplay.js @@ -74,7 +74,7 @@ function formatFileSize(fileSize) { if (fileSize < 10000) { - return fileSize + " kB"; + return fileSize + " KB"; } @@ -132,6 +132,7 @@ function updateLifeDisplay() { /* Calculate amount of energy used both recording a sleeping over the course of a day */ energyUsed = totalRecLength * configuration.current / 3600; + energyUsed += (86400 - totalRecLength) * sleepEnergy / 3600; text += "Daily energy consumption will be approximately " + Math.round(energyUsed) + " mAh.";