Navigation


Changeset 195:73f73ac55725 in freeDiameter for extensions/dbg_monitor


Ignore:
Timestamp:
Feb 8, 2010, 5:54:15 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Replace countdown with a time counter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/dbg_monitor/dbg_monitor.c

    r185 r195  
    6363{
    6464        sigset_t sig;
     65        int i = 0;
    6566        struct sigaction act;
    6667        fd_log_threadname("Monitor thread");
     
    7778        while (1) {
    7879                #ifdef DEBUG
    79                 int i;
    80                 for (i=30; i>0; i--) {
    81                         fd_log_debug("[dbg_monitor] %i\n", i); /* This makes it easier to detect inactivity periods in the log file */
     80                for (i++; i % 30; i++) {
     81                        fd_log_debug("[dbg_monitor] %ih%*im%*is\n", i/3600, 2, i/60, 2, i%60); /* This makes it easier to detect inactivity periods in the log file */
    8282                        sleep(1);
    8383                }
Note: See TracChangeset for help on using the changeset viewer.