fix compile
This commit is contained in:
parent
77a9528f91
commit
8176b390fa
|
@ -1679,7 +1679,7 @@ int sigar_file_system_usage_get(sigar_t *sigar,
|
||||||
fsusage->disk_write_bytes = SIGAR_FIELD_NOTIMPL;
|
fsusage->disk_write_bytes = SIGAR_FIELD_NOTIMPL;
|
||||||
fsusage->disk_queue = SIGAR_FIELD_NOTIMPL;
|
fsusage->disk_queue = SIGAR_FIELD_NOTIMPL;
|
||||||
#else
|
#else
|
||||||
SIGAR_DISK_STATS_INIT(&fsusage->disk)
|
SIGAR_DISK_STATS_INIT(&fsusage->disk);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return SIGAR_OK;
|
return SIGAR_OK;
|
||||||
|
|
|
@ -612,7 +612,7 @@ int sigar_file_system_usage_get(sigar_t *sigar,
|
||||||
fsusage->free_files = buf.f_ffree;
|
fsusage->free_files = buf.f_ffree;
|
||||||
fsusage->use_percent = sigar_file_system_usage_calc_used(sigar, fsusage);
|
fsusage->use_percent = sigar_file_system_usage_calc_used(sigar, fsusage);
|
||||||
|
|
||||||
SIGAR_DISK_STATS_INIT(&fsusage->disk)
|
SIGAR_DISK_STATS_INIT(&fsusage->disk);
|
||||||
|
|
||||||
if (!sigar->fsdev) {
|
if (!sigar->fsdev) {
|
||||||
if (create_fsdev_cache(sigar) != SIGAR_OK) {
|
if (create_fsdev_cache(sigar) != SIGAR_OK) {
|
||||||
|
|
|
@ -341,7 +341,7 @@ int sigar_file_system_usage_get(sigar_t *sigar,
|
||||||
fsusage->free_files = buf.f_ffree;
|
fsusage->free_files = buf.f_ffree;
|
||||||
fsusage->use_percent = sigar_file_system_usage_calc_used(sigar, fsusage);
|
fsusage->use_percent = sigar_file_system_usage_calc_used(sigar, fsusage);
|
||||||
|
|
||||||
SIGAR_DISK_STATS_INIT(&fsusage->disk)
|
SIGAR_DISK_STATS_INIT(&fsusage->disk);
|
||||||
|
|
||||||
return SIGAR_OK;
|
return SIGAR_OK;
|
||||||
}
|
}
|
||||||
|
|
|
@ -204,7 +204,7 @@ int sigar_file_system_usage_get(sigar_t *sigar,
|
||||||
fsusage->used = -1;
|
fsusage->used = -1;
|
||||||
fsusage->files = -1;
|
fsusage->files = -1;
|
||||||
fsusage->free_files = -1;
|
fsusage->free_files = -1;
|
||||||
SIGAR_DISK_STATS_INIT(&fsusage->disk)
|
SIGAR_DISK_STATS_INIT(&fsusage->disk);
|
||||||
|
|
||||||
return SIGAR_OK;
|
return SIGAR_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue