changeset 187:12a733792e0b

Fix a use of the wrong variable name.
author John "Elwin" Edwards
date Wed, 21 Jan 2015 17:21:35 -0500
parents 674e8899703b
children 4fc95d726146
files rlgterm.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rlgterm.js	Tue Jan 20 16:06:12 2015 -0500
+++ b/rlgterm.js	Wed Jan 21 17:21:35 2015 -0500
@@ -907,7 +907,7 @@
   var hours = Math.floor(minutes / 60);
   if (hours < 24)
     return String(hours) + " hr " + String(minutes % 60) + " min";
-  var days = Math.floor(days / 24);
+  var days = Math.floor(hours / 24);
   if (days == 1)
     return "1 day " + String(hours % 24) + " hr";
   else