[Pkg-ocaml-maint-commits] [approx] 05/08: cache unknown file types for $interval
Eric Cooper
ecc at cmu.edu
Sat Jun 20 17:51:27 UTC 2015
This is an automated email from the git hooks/post-receive script.
ecc-guest pushed a commit to branch upstream
in repository approx.
commit cce432aa0d0487398236f29a5e3024650184829f
Author: Mark White <mark at celos.net>
Date: Fri Feb 28 22:23:19 2014 +0000
cache unknown file types for $interval
---
approx.ml | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/approx.ml b/approx.ml
index 7115994..f4b31d2 100644
--- a/approx.ml
+++ b/approx.ml
@@ -126,8 +126,11 @@ let serve_local name ims env =
else Cache_miss mod_time
end else if Release.immutable name || Release.valid name then
deliver_if_newer ()
- else
- Cache_miss 0.
+ else begin
+ print_age mod_time ctime;
+ if minutes_old ctime <= interval then deliver_if_newer ()
+ else Cache_miss mod_time
+ end
| None ->
Cache_miss 0.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ocaml-maint/packages/approx.git
More information about the Pkg-ocaml-maint-commits
mailing list