2007-08-16
2007-08-16 11:53:35 by Martin Stjernholm <mast@lysator.liu.se>
-
c2821dd99a67a929d63e12620d1d4704093d2c8f
(9 lines)
(+5/-4)
[
Show
| Annotate
]
Branch: 5.2
Fixed some time() calls.
Rev: server/protocols/http.pike:1.524
2:
// Modified by Francesco Chemolli to add throttling capabilities.
// Copyright © 1996 - 2004, Roxen IS.
- constant cvs_version = "$Id: http.pike,v 1.523 2007/08/14 16:04:17 mast Exp $";
+ constant cvs_version = "$Id: http.pike,v 1.524 2007/08/16 11:53:35 mast Exp $";
// #define REQUEST_DEBUG
#define MAGIC_ERROR
2102: Inside #if defined(RAM_CACHE)
"mtime":(file->stat &&
file->stat[ST_MTIME]),
"rf":realfile,
- "refresh":time(1) + misc->cacheable/2,
+ "refresh":predef::time(1) + misc->cacheable/2,
]),
misc->cacheable, this_object());
file = ([
2580: Inside #if defined(RAM_CACHE)
}
int refresh;
- if (cv[1]->refresh && (cv[1]->refresh <= time(1))) {
+ if (cv[1]->refresh && (cv[1]->refresh <= predef::time(1))) {
// We need to refresh the entry.
- refresh = 1 + time(1) - cv[1]->refresh;
+ refresh = 1 + predef::time(1) - cv[1]->refresh;
m_delete(cv[1], "refresh");
misc->connection = "close";
}