Skip to content

Commit

Permalink
Reset start/up time on sweep
Browse files Browse the repository at this point in the history
  • Loading branch information
comptekki committed Jan 31, 2018
1 parent 64f9ee4 commit 821b1cc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main_handler.erl
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,6 @@ Port/binary,
$('#'+box+'_ltd').css('background-color','#005555');
if ($('#'+box+'upstrttime').html().length == 11 ) {
$('#'+box+'upstrttime').html('Start Time: ' + getnow());
// '01/29/2018-10:54:29');
}
$('#'+box+'uptime').html(difftime($('#'+box+'upstrttime').html()));
message(sepcol,boxCom[0] + ': ' + 'pong');
Expand Down Expand Up @@ -2520,7 +2519,10 @@ jsrefcons_row([{Wk,_FQDN,_MacAddr,_Os}|Wks],Rm) ->
<<".">> -> jsrefcons_row(Wks,Rm);
_ ->
<<"
if ($('#",Wk/binary,"status').html() == '.'){
$('#",Wk/binary,"upstrttime').html('Start Time:');
$('#",Wk/binary,"uptime').html('&nbsp;&nbspUp Time:');
}
$('#",Wk/binary,"_hltd').css('background-color','#000');
$('#",Wk/binary,"_ltd').css('background-color','#000');
$('#",Wk/binary,"dfstatus').css('color','cyan');
Expand Down

0 comments on commit 821b1cc

Please sign in to comment.