diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-01-24 17:43:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-24 17:43:32 +0100 |
commit | ac9ddce37d16af4e36c1ff945c12aaaf615e69d8 (patch) | |
tree | 4987937426f56c881cb2a83e607924c0103ab3b4 /isisd | |
parent | Merge pull request #42 from donaldsharp/pim_lib_work2 (diff) | |
parent | lib: time: add TIMEVAL_TO_TIMESPEC (diff) | |
download | frr-ac9ddce37d16af4e36c1ff945c12aaaf615e69d8.tar.xz frr-ac9ddce37d16af4e36c1ff945c12aaaf615e69d8.zip |
Merge pull request #104 from opensourcerouting/time-cleanup
Time cleanup
Diffstat (limited to 'isisd')
-rw-r--r-- | isisd/isis_spf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/isisd/isis_spf.c b/isisd/isis_spf.c index 086f5b23d..c1fb062e5 100644 --- a/isisd/isis_spf.c +++ b/isisd/isis_spf.c @@ -1149,7 +1149,7 @@ isis_run_spf (struct isis_area *area, int level, int family, u_char *sysid) unsigned long long start_time, end_time; /* Get time that can't roll backwards. */ - quagga_gettime(QUAGGA_CLK_MONOTONIC, &time_now); + monotime(&time_now); start_time = time_now.tv_sec; start_time = (start_time * 1000000) + time_now.tv_usec; @@ -1243,7 +1243,7 @@ out: spftree->pending = 0; spftree->runcount++; spftree->last_run_timestamp = time (NULL); - quagga_gettime(QUAGGA_CLK_MONOTONIC, &time_now); + monotime(&time_now); end_time = time_now.tv_sec; end_time = (end_time * 1000000) + time_now.tv_usec; spftree->last_run_duration = end_time - start_time; |