Changeset 4356 for trunk/module-monitor.c
- Timestamp:
- 01/07/11 02:01:57 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/module-monitor.c
r4288 r4356 243 243 int lsec, isec, con, cau, lrt; 244 244 time_t now; 245 struct tm *lt;245 struct tm lt; 246 246 now=time((time_t)0); 247 247 … … 275 275 else 276 276 lrt = cl->cwlastresptime; 277 l t = localtime(&cl->login);278 sprintf(ldate, "%02d.%02d.%02d", lt ->tm_mday, lt->tm_mon+1, lt->tm_year % 100);277 localtime_r(&cl->login, <); 278 sprintf(ldate, "%02d.%02d.%02d", lt.tm_mday, lt.tm_mon+1, lt.tm_year % 100); 279 279 int cnr=get_threadnum(cl); 280 sprintf(ltime, "%02d:%02d:%02d", lt ->tm_hour, lt->tm_min, lt->tm_sec);280 sprintf(ltime, "%02d:%02d:%02d", lt.tm_hour, lt.tm_min, lt.tm_sec); 281 281 sprintf(sbuf, "[%c--CCC]%8lX|%c|%d|%s|%d|%d|%s|%d|%s|%s|%s|%d|%04X:%04X|%s|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d\n", 282 282 id, (unsigned long)cl->thread, cl->typ, cnr, usr, cau, cl->crypted,
Note:
See TracChangeset
for help on using the changeset viewer.