Replace econfig key lost_items_timeout by lost_keep_hours
This commit is contained in:
parent
0900cca4f5
commit
b72fd20674
3 changed files with 8 additions and 8 deletions
|
@ -55,7 +55,7 @@ delete_lostitems(void *unused)
|
|||
for (n = 0; getlost(n, &lost); n++) {
|
||||
if (!lost.lost_owner)
|
||||
continue;
|
||||
if (lost.lost_timestamp > (now - lost_items_timeout))
|
||||
if (lost.lost_timestamp > (now - hours(lost_keep_hours)))
|
||||
continue;
|
||||
lost.lost_owner = 0;
|
||||
putlost(n, &lost);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue