Changeset 1764


Ignore:
Timestamp:
Mar 3, 2010, 11:52:07 PM (10 years ago)
Author:
alno
Message:

Add channelname to userfile (log) too depending on appendchaninfo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/oscam-log.c

    r1762 r1764  
    374374        else
    375375            cwps=0;
     376
     377        char *channel ="";
     378        if(!cfg->mon_appendchaninfo)
     379            channel = monitor_get_srvname(client[idx].last_srvid,client[idx].last_caid);
     380
    376381        if(!cfg->disableuserfile) {
    377             fprintf(fps, "%02d.%02d.%02d %02d:%02d:%02d %3.1f %s %s %d %d %d %d %d %d %d %ld %ld %s %04X:%04X\n",
     382            fprintf(fps, "%02d.%02d.%02d %02d:%02d:%02d %3.1f %s %s %d %d %d %d %d %d %d %ld %ld %s %04X:%04X %s\n",
    378383                    lt->tm_mday, lt->tm_mon+1, lt->tm_year%100,
    379384                    lt->tm_hour, lt->tm_min, lt->tm_sec, cwps,
    380385                    client[idx].usr[0] ? client[idx].usr : "-",
    381                             cs_inet_ntoa(client[idx].ip), client[idx].port,
    382                             client[idx].cwfound, client[idx].cwcache, client[idx].cwnot, client[idx].cwignored,
    383                             client[idx].cwtout, client[idx].cwtun, client[idx].login, client[idx].last,
    384                             ph[client[idx].ctyp].desc,client[idx].last_caid,client[idx].last_srvid);
     386                    cs_inet_ntoa(client[idx].ip), client[idx].port,
     387                    client[idx].cwfound, client[idx].cwcache, client[idx].cwnot, client[idx].cwignored,
     388                    client[idx].cwtout, client[idx].cwtun, client[idx].login, client[idx].last,
     389                    ph[client[idx].ctyp].desc,client[idx].last_caid,client[idx].last_srvid,
     390                    channel);
     391
    385392            fflush(fps);
    386393        }
Note: See TracChangeset for help on using the changeset viewer.