CC-2363: Diagnostic screen in Web UI

-everything working
This commit is contained in:
martin 2011-09-22 10:45:43 -04:00
parent 3a2eaecad8
commit 046f98db8f
9 changed files with 345 additions and 102 deletions

View file

@ -11,6 +11,23 @@ function popup(mylink){
return false;
}
function convertSecondsToDaysHoursMinutesSeconds(seconds){
if (seconds < 0)
seconds = 0;
seconds = parseInt(seconds, 10);
var days = parseInt(seconds / 86400);
seconds -= days*86400;
var hours = parseInt(seconds / 3600);
seconds -= hours*3600;
var minutes = parseInt(seconds / 60);
seconds -= minutes*60;
return {days:days, hours:hours, minutes:minutes, seconds:seconds};
}
/* Takes an input parameter of milliseconds and converts these into
* the format HH:MM:SS */