mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-03 05:10:16 -05:00
Scrub first the just synced blocks
This commit is contained in:
parent
9a5f30cd32
commit
cca2cbb23f
9 changed files with 74 additions and 49 deletions
|
|
@ -800,17 +800,14 @@ void map_free(struct snapraid_map* map)
|
|||
free(map);
|
||||
}
|
||||
|
||||
int info_time_compare(const void* void_a, const void* void_b)
|
||||
int time_compare(const void* void_a, const void* void_b)
|
||||
{
|
||||
const snapraid_info* info_a = void_a;
|
||||
const snapraid_info* info_b = void_b;
|
||||
time_t time_a = info_get_time(*info_a);
|
||||
time_t time_b = info_get_time(*info_b);
|
||||
const time_t* time_a = void_a;
|
||||
const time_t* time_b = void_b;
|
||||
|
||||
if (time_a < time_b)
|
||||
if (*time_a < *time_b)
|
||||
return -1;
|
||||
if (time_a > time_b)
|
||||
if (*time_a > *time_b)
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue