aboutsummaryrefslogtreecommitdiff
path: root/src/pinger.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pinger.c')
-rw-r--r--src/pinger.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/pinger.c b/src/pinger.c
index c0276cd..8bb1090 100644
--- a/src/pinger.c
+++ b/src/pinger.c
@@ -862,14 +862,14 @@ hostlist_copy_stat(HOSTLIST *hl)
HOSTPING *cur = hostping_find_local(hp->name);
if (cur)
hp->stat_last = cur->stat_last;
}
}
-static void
-update_commit(void)
+void
+p903_update_commit(void)
{
HOSTPING *hp;
int upd;
pthread_mutex_lock(&update_mutex);
pthread_rwlock_wrlock(&hostlist_rwlock);
@@ -1475,13 +1475,13 @@ p903_scheduler(void *p)
pthread_mutex_lock(&sendq_mutex);
/* Reset all statistics */
FOR_EACH_HOSTPING(hp) {
hostping_reset(hp);
}
/* Commit updates */
- update_commit();
+ p903_update_commit();
send_p = 1;
pthread_cond_broadcast(&sendq_cond);
pthread_mutex_unlock(&sendq_mutex);
sleep(probe_interval);
@@ -1489,13 +1489,6 @@ p903_scheduler(void *p)
info("total sent=%u, received=%u",
xmit_total, recv_total);
xmit_total = recv_total = 0;
}
}
-void *
-p903_saver(void *p)
-{
- update_commit();
- return NULL;
-}
-

Return to:

Send suggestions and report system problems to the System administrator.