fix dir_stat_get, was missing the first file
This commit is contained in:
parent
018f634896
commit
771742caf9
|
@ -269,7 +269,7 @@ SIGAR_DECLARE(int) sigar_dir_stat_get(sigar_t *sigar,
|
|||
return GetLastError();
|
||||
}
|
||||
|
||||
while (FindNextFile(handle, &data)) {
|
||||
do {
|
||||
/* skip '.' and '..' */
|
||||
if (IS_DOTDIR(data.cFileName)) {
|
||||
continue;
|
||||
|
@ -303,7 +303,7 @@ SIGAR_DECLARE(int) sigar_dir_stat_get(sigar_t *sigar,
|
|||
default:
|
||||
++dirstats->total;
|
||||
}
|
||||
}
|
||||
} while (FindNextFile(handle, &data));
|
||||
|
||||
error = GetLastError();
|
||||
|
||||
|
|
Loading…
Reference in New Issue