diff options
author | Daniel Mack <github@zonque.org> | 2015-07-24 10:09:06 +0200 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2015-07-24 10:09:06 +0200 |
commit | b4c279bea78000591a692dfede6d5fadfee070f4 (patch) | |
tree | 48878cf09dad9560d3a9eb9e6f5743cde67585d6 /src/core | |
parent | 4026f52a24ca3b09228db9e0277e25489cdc9205 (diff) | |
parent | dbf5cc473f94972c041a4b9beb299e94d66cba7f (diff) |
Merge pull request #696 from poettering/automount-expiry-freq
automount: lower the idle polling frequency a bit
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/automount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/automount.c b/src/core/automount.c index 90b331f70e..342dd8f0a9 100644 --- a/src/core/automount.c +++ b/src/core/automount.c @@ -672,7 +672,7 @@ static int automount_start_expire(Automount *a) { assert(a); - timeout = now(CLOCK_MONOTONIC) + MAX(a->timeout_idle_usec/10, USEC_PER_SEC); + timeout = now(CLOCK_MONOTONIC) + MAX(a->timeout_idle_usec/3, USEC_PER_SEC); if (a->expire_event_source) { r = sd_event_source_set_time(a->expire_event_source, timeout); |