mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-26 09:56:29 -05:00
Fix future scrub times
This commit is contained in:
parent
473819467f
commit
294a0ae90d
2 changed files with 8 additions and 2 deletions
|
|
@ -3278,7 +3278,12 @@ static void* state_write_thread(void* arg)
|
|||
flag |= 8;
|
||||
sputb32(flag, f);
|
||||
|
||||
t = info_get_time(info) - info_oldest;
|
||||
/* the oldest info is computed only on required blocks, so it may not be the absolute oldest */
|
||||
if (info_get_time(info) >= info_oldest)
|
||||
t = info_get_time(info) - info_oldest;
|
||||
else
|
||||
t = 0;
|
||||
|
||||
sputb32(t, f);
|
||||
} else {
|
||||
/* write a special 0 flag to mark missing info */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue