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. */
| 291 | * 16 bits. The returned time is suitable to be stored as LDT (last decrement |
| 292 | * time) for the LFU implementation. */ |
| 293 | unsigned long LFUGetTimeInMinutes(void) { |
| 294 | return (g_pserver->unixtime/60) & 65535; |
| 295 | } |
| 296 | |
| 297 | /* Given an object last access time, compute the minimum number of minutes |
| 298 | * that elapsed since the last access. Handle overflow (ldt greater than |
no outgoing calls
no test coverage detected