summaryrefslogtreecommitdiff
path: root/src/evict
diff options
context:
space:
mode:
authorAlex Gorrod <alexg@wiredtiger.com>2015-11-17 04:36:35 +0000
committerAlex Gorrod <alexg@wiredtiger.com>2015-11-17 04:36:35 +0000
commit63ec13b88b69d16e68fb113b4df65123375bba71 (patch)
tree68a4e6db8338779d41bfaf11e715d33236336d95 /src/evict
parent5dea55acc6f68a0d09ff075ff246eab205b7903d (diff)
downloadmongo-63ec13b88b69d16e68fb113b4df65123375bba71.tar.gz
WT-2220 Split WT_TIMEDIFF macro into unit specific macros.
We regularly divide the results, encapsulate that better.
Diffstat (limited to 'src/evict')
-rw-r--r--src/evict/evict_lru.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evict/evict_lru.c b/src/evict/evict_lru.c
index 18335d6fb5e..5b9851852c7 100644
--- a/src/evict/evict_lru.c
+++ b/src/evict/evict_lru.c
@@ -210,7 +210,7 @@ __evict_server(void *arg)
else {
/* After being stuck for 5 minutes, give up. */
WT_ERR(__wt_epoch(session, &now));
- if (WT_TIMEDIFF(now, stuck_ts) / WT_BILLION > 300) {
+ if (WT_TIMEDIFF_SEC(now, stuck_ts) > 300) {
__wt_errx(session,
"Cache stuck for too long, giving up");
(void)__wt_cache_dump(session, NULL);