mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-30 11:56:33 -05:00
Gather access counters in Windows
This commit is contained in:
parent
a38e3c5f36
commit
4bc30e976a
2 changed files with 71 additions and 3 deletions
|
|
@ -1544,10 +1544,8 @@ static int devscan(tommy_list* list)
|
|||
|
||||
/* retrieve access stat for the low level device */
|
||||
uint64_t access_stat;
|
||||
if (devstat(device, &access_stat) == 0) {
|
||||
/* cumulate access stat in the first split */
|
||||
if (devstat(device, &access_stat) == 0)
|
||||
devinfo->access_stat = access_stat;
|
||||
}
|
||||
|
||||
/* insert in the list */
|
||||
tommy_list_insert_tail(list, &devinfo->node, devinfo);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue