diff options
author | Takashi Sogabe <sogabe@iij.ad.jp> | 2009-06-22 13:07:02 +0900 |
---|---|---|
committer | Paul Jakma <paul@quagga.net> | 2009-06-22 12:21:22 +0100 |
commit | 86f72dcba35f055b5344deeb5f057c2f1d9a291f (patch) | |
tree | b128af27119cf27a709423814709a5a0bde98bae /ospf6d/ospf6_top.c | |
parent | f7e0db80693aea7f5fd3d8d4f00e97347c8d0ba5 (diff) | |
download | quagga-86f72dcba35f055b5344deeb5f057c2f1d9a291f.tar.bz2 quagga-86f72dcba35f055b5344deeb5f057c2f1d9a291f.tar.xz |
Convert ospf6d over to quagga_gettime() wrappers.
Diffstat (limited to 'ospf6d/ospf6_top.c')
-rw-r--r-- | ospf6d/ospf6_top.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ospf6d/ospf6_top.c b/ospf6d/ospf6_top.c index b42962c5..c4cc9fac 100644 --- a/ospf6d/ospf6_top.c +++ b/ospf6d/ospf6_top.c @@ -117,7 +117,7 @@ ospf6_create (void) o = XCALLOC (MTYPE_OSPF6_TOP, sizeof (struct ospf6)); /* initialize */ - gettimeofday (&o->starttime, (struct timezone *) NULL); + quagga_gettime (QUAGGA_CLK_MONOTONIC, &o->starttime); o->area_list = list_new (); o->area_list->cmp = ospf6_area_cmp; o->lsdb = ospf6_lsdb_create (o); @@ -447,7 +447,7 @@ ospf6_show (struct vty *vty, struct ospf6 *o) router_id, VNL); /* running time */ - gettimeofday (&now, (struct timezone *)NULL); + quagga_gettime (QUAGGA_CLK_MONOTONIC, &now); timersub (&now, &o->starttime, &running); timerstring (&running, duration, sizeof (duration)); vty_out (vty, " Running %s%s", duration, VNL); |