cast to prevent possible integer overflow in filesystem_usage

This commit is contained in:
Doug MacEachern committed 2006-05-31 00:59:14 +00:00
1 parent d1f6bb4ae5
commit 8355e44d8c
6 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -446,7 +446,7 @@ int sigar_file_system_list_get(sigar_t *sigar,
}
#define SIGAR_FS_BLOCKS_TO_BYTES(buf, f) \
((buf.f * (buf.f_bsize / 512)) >> 1)
(((sigar_uint64_t)buf.f * (buf.f_bsize / 512)) >> 1)
int sigar_file_system_usage_get(sigar_t *sigar,
const char *dirname,