- Timestamp:
- 07/11/11 23:17:55 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/dynamic-threads/oscam-http.c
r5597 r5607 2269 2269 localtime_r(&item->start, &start_t); 2270 2270 localtime_r(&item->end, &end_t); 2271 2272 tpl_printf(vars, TPLAPPEND, "LOGHISTORY", "<SPAN CLASS=\"%s\">entitlement %s: caid %04X provid %06X id %0 16lX class %08X valid ",2273 item->end > now ? "e_valid" : "e_expired" , typetxt[item->type], item->caid, item->provid, item->id, item->class);2271 // to be able to display correctly on 32bit systems, uint64 has to be split in 2 uint32 values and used as 2 params 2272 tpl_printf(vars, TPLAPPEND, "LOGHISTORY", "<SPAN CLASS=\"%s\">entitlement %s: caid %04X provid %06X id %08X%08X class %08X valid ", 2273 item->end > now ? "e_valid" : "e_expired" , typetxt[item->type], item->caid, item->provid, (uint32_t)(item->id >> 32), (uint32_t)item->id, item->class); 2274 2274 2275 2275 if ( item->start != 0 ){ … … 2630 2630 { active_ent++; 2631 2631 localtime_r(&ent->end, &end_t); 2632 tpl_printf(vars, TPLAPPEND, "TMPSPAN", (ent->type == 6)?"%s:%016lX<BR>":"%s:%04lX<BR>", 2633 typetxt[ent->type], 2634 ent->id); 2632 tpl_printf(vars, TPLAPPEND, "TMPSPAN", "%s:", 2633 typetxt[ent->type]); 2634 // Attention: to be able to display correctly on 32bit systems, uint64 has to be split 2635 // in 2 uint32 values and used as 2 params 2636 if (ent->type == 6) 2637 { 2638 tpl_printf(vars, TPLAPPEND, "TMPSPAN", "%08X", (uint32_t)(ent->id>>32)); 2639 } 2640 tpl_printf(vars, TPLAPPEND, "TMPSPAN", (ent->type == 6)?"%08X<BR>":"%04X<BR>", 2641 (uint32_t)ent->id); 2635 2642 tpl_printf(vars, TPLAPPEND, "TMPSPAN", "%04X:%06X<BR>exp:%04d/%02d/%02d<BR><BR>", 2636 2643 ent->caid, ent->provid,
Note:
See TracChangeset
for help on using the changeset viewer.