Changeset 1191


Ignore:
Timestamp:
01/12/10 00:14:39 (12 years ago)
Author:
alno
Message:

WebIf:

  • try to fix the dbox-mon incompatibility with hideclient_to
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/monitor-improvement/module-monitor.c

    r1190 r1191  
    350350
    351351  now=time((time_t)0);
    352   for (i=0; i<CS_MAXPID; i++)
    353     if ((cfg->mon_hideclient_to <= 0) ||
    354         (((now-client[i].lastecm)/60)<cfg->mon_hideclient_to) ||
    355         (((now-client[i].lastemm)/60)<cfg->mon_hideclient_to) ||
    356         (client[i].typ!='c'))
    357       if (client[i].pid)
    358       {
    359         if ((client[cs_idx].monlvl<2) && (client[i].typ!='s'))
    360         {
    361           if ((strcmp(client[cs_idx].usr, client[i].usr)) ||
    362               ((client[i].typ!='c') && (client[i].typ!='m')))
     352  for (i=0; i<CS_MAXPID; i++){
     353    if ((cfg->mon_hideclient_to <= 0) || (((now-client[i].lastecm)/60)<cfg->mon_hideclient_to) || (((now-client[i].lastemm)/60)<cfg->mon_hideclient_to) || (client[i].typ!='c'))
     354      if (client[i].pid) {
     355        if ((client[cs_idx].monlvl<2) && (client[i].typ!='s'))  {
     356          if ((strcmp(client[cs_idx].usr, client[i].usr)) || ((client[i].typ!='c') && (client[i].typ!='m')))
    363357            continue;
    364358        }
    365359        monitor_send_info(monitor_client_info('I', i), 0);
    366       }
     360            }
     361  }
    367362  monitor_send_info(NULL, 1);
    368363}
Note: See TracChangeset for help on using the changeset viewer.