diff --git a/src/sigar_fileinfo.c b/src/sigar_fileinfo.c index c3a43582..d2f9a2a2 100644 --- a/src/sigar_fileinfo.c +++ b/src/sigar_fileinfo.c @@ -409,6 +409,10 @@ SIGAR_DECLARE(int) sigar_dir_stat_get(sigar_t *sigar, continue; } + dirstats->disk_usage += + (data.nFileSizeHigh * (MAXDWORD+1)) + + data.nFileSizeLow; + /* e.g. "C:\sigar\lib" */ strncpy(ptr, data.cFileName, max); ptr[max] = '\0';