Return the current time in minutes, just taking the least significant * 16 bits. The returned time is suitable to be stored as LDT (last decrement * time) for the LFU implementation. */
| 280 | * 16 bits. The returned time is suitable to be stored as LDT (last decrement |
| 281 | * time) for the LFU implementation. */ |
| 282 | unsigned long LFUGetTimeInMinutes(void) { |
| 283 | return (server.unixtime/60) & 65535; |
| 284 | } |
| 285 | |
| 286 | /* Given an object last access time, compute the minimum number of minutes |
| 287 | * that elapsed since the last access. Handle overflow (ldt greater than |
no outgoing calls
no test coverage detected