Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
memory-trim: Fix timestamp overflow warning right after reboot.
If OVN is started less than 30 seconds after system boot, it logs: |memory_trim|WARN|Detected last active timestamp overflow The 'now < trim_timeout_ms' is not for a timestamp overflow, but for the later subtraction. 'now < last_active_ms' is enough to check for the overflow. Technically, we shouldn't need to check that now > trim_timeout_ms before subtraction, because the result should be a signed integer, but it's cleaner this way. Fixes: 12ddb1c ("lflow-cache: Automatically trim cache when it becomes inactive.") Signed-off-by: Ilya Maximets <[email protected]> Signed-off-by: Dumitru Ceara <[email protected]> (cherry picked from commit 11cd04a)
- Loading branch information