Changeset 3445 for trunk/oscam-log.c
- Timestamp:
- 10/10/10 17:03:06 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/oscam-log.c
r3424 r3445 125 125 //flag = -1 is old behaviour, before implementation of debug_nolf (=debug no line feed) 126 126 // 127 int i;128 127 time_t t; 129 128 struct tm *lt; … … 167 166 store_logentry(log_buf); 168 167 #endif 169 for (i = 0; i < CS_MAXPID; i++) // monitor-clients 170 { 171 if ((client[i].pid) && (client[i].log)) 172 { 173 if (client[i].monlvl<2) 174 { 175 if ((cur_client()->typ != 'c') && (cur_client()->typ != 'm')) 168 if ((cur_client()->typ != 'c') && (cur_client()->typ != 'm')) 169 return; 170 struct s_client *prev, *cl; 171 for (prev=first_client, cl=first_client->next; prev->next != NULL; prev=prev->next, cl=cl->next) 172 { 173 if ((cl->pid) && (cl->log)) 174 { 175 if (cl->monlvl<2) 176 if (strcmp(cur_client()->usr, cl->usr)) 176 177 continue; 177 if (strcmp(cur_client()->usr, client[i].usr)) 178 continue; 179 } 180 sprintf(sbuf, "%03d", client[i].logcounter); 181 client[i].logcounter = (client[i].logcounter+1) % 1000; 178 sprintf(sbuf, "%03d", cl->logcounter); 179 cl->logcounter = (cl->logcounter+1) % 1000; 182 180 memcpy(log_buf + 4, sbuf, 3); 183 monitor_send_idx( &client[i], log_buf);181 monitor_send_idx(cl, log_buf); 184 182 } 185 183 }
Note:
See TracChangeset
for help on using the changeset viewer.