Changeset 1131


Ignore:
Timestamp:
01/08/10 22:41:20 (12 years ago)
Author:
alno
Message:

WebIf:

  • idletime in Userconfig now in format hh:mm:ss
  • fixed unit ms->s in config/monitor param hideclient_to
Location:
branches/monitor-improvement
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/monitor-improvement/oscam-http.c

    r1130 r1131  
    768768        tpl_addVar(vars, 0, "EXPIRED", expired);
    769769        tpl_addVar(vars, 0, "LASTCHANNEL", lastchan);
    770         tpl_printf(vars, 0, "IDLESECS", "%d", isec);
     770
     771        int secs = 0, fullmins =0, mins =0, hours =0;
     772        if(isec > 0){
     773            secs = isec % 60;
     774            if (isec > 60){
     775                fullmins = isec / 60;
     776                mins = fullmins % 60;
     777                if(fullmins > 60)   hours = fullmins / 60;
     778            }
     779        }
     780
     781        tpl_printf(vars, 0, "IDLESECS", "%02d:%02d:%02d", hours, mins, secs);
    771782        tpl_addVar(vars, 1, "USERCONFIGS", tpl_getTpl(vars, "USERCONFIGLISTBIT"));
    772783        isec = 0;
  • branches/monitor-improvement/oscam-http.h

    r1120 r1131  
    162162      <TH>Status</TH>\n\
    163163      <TH>Last Channel</TH>\n\
    164       <TH>Idle (Sec)</TH>\n\
     164      <TH>Idle</TH>\n\
    165165      <TH colspan=\"2\" align=\"center\">Action</TH>\n\
    166166    </TR>\n\
     
    464464            </select></TD>\n\
    465465        </TR>\n\
    466         <TR><TD>Hideclientto:</TD><TD><input name=\"hideclient_to\" type=\"text\" size=\"5\" maxlength=\"5\" value=\"##HIDECLIENTTO##\"> ms</TD></TR>\n\
     466        <TR><TD>Hideclientto:</TD><TD><input name=\"hideclient_to\" type=\"text\" size=\"5\" maxlength=\"5\" value=\"##HIDECLIENTTO##\"> s</TD></TR>\n\
    467467        <TR><TD>Httpport:</TD><TD><input name=\"httpport\" type=\"text\" size=\"5\" maxlength=\"5\" value=\"##HTTPPORT##\"></TD></TR>\n\
    468468        <TR><TD>Httpuser:</TD><TD><input name=\"httpuser\" type=\"text\" size=\"20\" maxlength=\"20\" value=\"##HTTPUSER##\"></TD></TR>\n\
Note: See TracChangeset for help on using the changeset viewer.