Changeset 1075:54d1cb00331a in freeDiameter for extensions/dbg_monitor
- Timestamp:
- May 2, 2013, 1:59:58 PM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/dbg_monitor/dbg_monitor.c
r1072 r1075 56 56 struct timespec * total, struct timespec * blocking, struct timespec * last) 57 57 { 58 long long throughput = (total_count * 1000000000) / ((total->tv_sec * 1000000000) + total->tv_nsec); 58 long long ms = (total->tv_sec * 1000000) + (total->tv_nsec / 1000); 59 long double throughput = (long double)total_count * 1000000; 60 throughput /= ms; 59 61 if (peer) { 60 TRACE_DEBUG(INFO, "'%s'@'%s': cur:%d/%d, h:%d, T:%lld in %ld.%06lds (% llditems/s), blocked:%ld.%06lds, last processing:%ld.%06lds",62 TRACE_DEBUG(INFO, "'%s'@'%s': cur:%d/%d, h:%d, T:%lld in %ld.%06lds (%.2LFitems/s), blocked:%ld.%06lds, last processing:%ld.%06lds", 61 63 queue_desc, peer, current_count, limit_count, highest_count, 62 64 total_count, total->tv_sec, total->tv_nsec, throughput, 63 65 blocking->tv_sec, blocking->tv_nsec, last->tv_sec, last->tv_nsec); 64 66 } else { 65 TRACE_DEBUG(INFO, "Global '%s': cur:%d/%d, h:%d, T:%lld in %ld.%06lds (% llditems/s), blocked:%ld.%06lds, last processing:%ld.%06lds",67 TRACE_DEBUG(INFO, "Global '%s': cur:%d/%d, h:%d, T:%lld in %ld.%06lds (%.2LFitems/s), blocked:%ld.%06lds, last processing:%ld.%06lds", 66 68 queue_desc, current_count, limit_count, highest_count, 67 69 total_count, total->tv_sec, total->tv_nsec, throughput,
Note: See TracChangeset
for help on using the changeset viewer.