comparison rlgterm.js @ 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 9758ca68e7f1
comparison
equal deleted inserted replaced
186:674e8899703b 187:12a733792e0b
905 if (minutes < 60) 905 if (minutes < 60)
906 return String(minutes) + " min"; 906 return String(minutes) + " min";
907 var hours = Math.floor(minutes / 60); 907 var hours = Math.floor(minutes / 60);
908 if (hours < 24) 908 if (hours < 24)
909 return String(hours) + " hr " + String(minutes % 60) + " min"; 909 return String(hours) + " hr " + String(minutes % 60) + " min";
910 var days = Math.floor(days / 24); 910 var days = Math.floor(hours / 24);
911 if (days == 1) 911 if (days == 1)
912 return "1 day " + String(hours % 24) + " hr"; 912 return "1 day " + String(hours % 24) + " hr";
913 else 913 else
914 return String(days) + " days " + String(hours % 24) + " hr"; 914 return String(days) + " days " + String(hours % 24) + " hr";
915 } 915 }