summaryrefslogtreecommitdiff
path: root/zebra/zebra_fpm.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-01-18 01:30:43 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2017-01-23 18:26:32 +0100
commitcf672a865428b5e55844b6d2e01ca9d3bd4afe6b (patch)
treefd47b5006fa2f7cc6499e6d84f800ccfb74d77dc /zebra/zebra_fpm.c
parentafe4c21720ed9956ba4034a64508f38d3cedc17e (diff)
*: use monotime()
This is largely a bulk-replace made with coccinelle. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'zebra/zebra_fpm.c')
-rw-r--r--zebra/zebra_fpm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/zebra/zebra_fpm.c b/zebra/zebra_fpm.c
index d44c75383b..1b2ae29eaa 100644
--- a/zebra/zebra_fpm.c
+++ b/zebra/zebra_fpm.c
@@ -306,7 +306,7 @@ zfpm_get_elapsed_time (time_t reference)
{
time_t now;
- now = quagga_monotime ();
+ now = monotime(NULL);
if (now < reference)
{
@@ -1163,7 +1163,7 @@ zfpm_connect_cb (struct thread *t)
*/
zfpm_g->connect_calls++;
zfpm_g->stats.connect_calls++;
- zfpm_g->last_connect_call_time = quagga_monotime ();
+ zfpm_g->last_connect_call_time = monotime(NULL);
ret = connect (sock, (struct sockaddr *) &serv, sizeof (serv));
if (ret >= 0)
@@ -1517,7 +1517,7 @@ zfpm_clear_stats (struct vty *vty)
zfpm_stop_stats_timer ();
zfpm_start_stats_timer ();
- zfpm_g->last_stats_clear_time = quagga_monotime();
+ zfpm_g->last_stats_clear_time = monotime(NULL);
vty_out (vty, "Cleared FPM stats%s", VTY_NEWLINE);
}