Roxen.git / server / modules / misc / collectd.pike

version» Context lines:

Roxen.git/server/modules/misc/collectd.pike:105:    sender_enabled = 0;    sender_cond->signal();    sender_thread->wait();    sender_thread = 0;    }   }      void sender_loop()   {    COLLECTD_WERR("::: sender_loop()\n"); -  roxen.name_thread(this_thread(), "Collectd sender"); +  Roxen.name_thread(this_thread(), "Collectd Sender");    while(sender_enabled)    {    if (mixed err = catch {    do_send();    })    master()->handle_error (err);    int time_to_next_run = interval - (time() % interval);    Thread.MutexKey key = sender_mutex->lock();    sender_cond->wait(key, time_to_next_run);    destruct (key);    } -  roxen.name_thread(this_thread(), 0); +  Roxen.name_thread(this_thread(), 0);    COLLECTD_WERR("::: sender_loop stopped\n");   }      array(mapping) last_run_rows = ({});   float last_run_time;      void do_send()   {    COLLECTD_WERR("::: do_send() %O\n", time());    int t = gethrtime();