Changeset 1083:d0017c5dde61 in freeDiameter for extensions/dbg_monitor/dbg_monitor.c
- Timestamp:
- May 3, 2013, 4:23:11 PM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/dbg_monitor/dbg_monitor.c
r1075 r1083 56 56 struct timespec * total, struct timespec * blocking, struct timespec * last) 57 57 { 58 long long ms = (total->tv_sec * 1000000) + (total->tv_nsec / 1000);58 long long us = (total->tv_sec * 1000000) + (total->tv_nsec / 1000); 59 59 long double throughput = (long double)total_count * 1000000; 60 throughput /= ms;60 throughput /= us; 61 61 if (peer) { 62 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", 63 63 queue_desc, peer, current_count, limit_count, highest_count, 64 total_count, total->tv_sec, total->tv_nsec , throughput,65 blocking->tv_sec, blocking->tv_nsec , last->tv_sec, last->tv_nsec);64 total_count, total->tv_sec, total->tv_nsec/1000, throughput, 65 blocking->tv_sec, blocking->tv_nsec/1000, last->tv_sec, last->tv_nsec/1000); 66 66 } else { 67 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", 68 68 queue_desc, current_count, limit_count, highest_count, 69 total_count, total->tv_sec, total->tv_nsec , throughput,70 blocking->tv_sec, blocking->tv_nsec , last->tv_sec, last->tv_nsec);69 total_count, total->tv_sec, total->tv_nsec/1000, throughput, 70 blocking->tv_sec, blocking->tv_nsec/1000, last->tv_sec, last->tv_nsec/1000); 71 71 } 72 72 } … … 122 122 123 123 CHECK_FCT_DO( pthread_rwlock_unlock(&fd_g_peers_rw), /* continue */ ); 124 125 126 124 127 125 CHECK_FCT_DO(fd_event_send(fd_g_config->cnf_main_ev, FDEV_DUMP_SERV, 0, NULL), /* continue */);
Note: See TracChangeset
for help on using the changeset viewer.