add dir_stat.disk_usage
This commit is contained in:
parent
ab3abd5119
commit
3e84be001a
|
@ -409,6 +409,10 @@ SIGAR_DECLARE(int) sigar_dir_stat_get(sigar_t *sigar,
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dirstats->disk_usage +=
|
||||||
|
(data.nFileSizeHigh * (MAXDWORD+1)) +
|
||||||
|
data.nFileSizeLow;
|
||||||
|
|
||||||
/* e.g. "C:\sigar\lib" */
|
/* e.g. "C:\sigar\lib" */
|
||||||
strncpy(ptr, data.cFileName, max);
|
strncpy(ptr, data.cFileName, max);
|
||||||
ptr[max] = '\0';
|
ptr[max] = '\0';
|
||||||
|
|
Loading…
Reference in New Issue