Changeset 2028


Ignore:
Timestamp:
04/08/10 23:32:45 (13 years ago)
Author:
alno
Message:

remove toggle effect in webif debug setting

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/oscam-http.c

    r2027 r2028  
    12451245    char *debuglvl = getParam(params, "debug");
    12461246    if(strlen(debuglvl) > 0) {
    1247         cfg->debuglvl = atoi(debuglvl);
    1248         kill(client[0].pid, SIGUSR1);
     1247        int lvl = atoi(debuglvl);
     1248        if (cfg->debuglvl != lvl) {
     1249            cfg->debuglvl = lvl;
     1250            kill(client[0].pid, SIGUSR1);
     1251        }
    12491252    }
    12501253
     
    16201623    char *debuglvl = getParam(params, "debug");
    16211624    if(strlen(debuglvl) > 0) {
    1622         cfg->debuglvl = atoi(debuglvl);
    1623         kill(client[0].pid, SIGUSR1);
     1625        int lvl = atoi(debuglvl);
     1626        if (cfg->debuglvl != lvl) {
     1627            cfg->debuglvl = lvl;
     1628            kill(client[0].pid, SIGUSR1);
     1629        }
    16241630    }
    16251631    char targetfile[256];
  • trunk/oscam-http.h

    r2027 r2028  
    322322        <TH>Login Time</TH>\n\
    323323        <TH>Online</TH>\n\
    324         <TH>caid:srvid</TH>\n\
     324        <TH>CAID:SRVID</TH>\n\
    325325        <TH>Current Channel</TH>\n\
    326326        <TH>Idle</TH>\n\
Note: See TracChangeset for help on using the changeset viewer.