diff options
author | rubidium <rubidium@openttd.org> | 2009-01-16 12:59:47 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-01-16 12:59:47 +0000 |
commit | b1a33a494f7a9510f600cb18e771b35905597be6 (patch) | |
tree | eef2f6bd0f7e1c471cd04882c93477dbfe6df764 /src/os2.cpp | |
parent | cdd3676478bc50ec10960146034e93d522c86142 (diff) | |
download | openttd-b1a33a494f7a9510f600cb18e771b35905597be6.tar.xz |
(svn r15104) -Codechange: unify the resolving of the xyz kbytes/megabytes strings.
Diffstat (limited to 'src/os2.cpp')
-rw-r--r-- | src/os2.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/os2.cpp b/src/os2.cpp index e15b96a5b..a44b27f2f 100644 --- a/src/os2.cpp +++ b/src/os2.cpp @@ -87,7 +87,7 @@ void FiosGetDrives() #endif } -bool FiosGetDiskFreeSpace(const char *path, uint32 *tot) +bool FiosGetDiskFreeSpace(const char *path, uint64 *tot) { #ifndef __INNOTEK_LIBC__ struct diskfree_t free; @@ -100,14 +100,14 @@ bool FiosGetDiskFreeSpace(const char *path, uint32 *tot) return false; #else - uint32 free = 0; + uint64 free = 0; #ifdef HAS_STATVFS { struct statvfs s; if (statvfs(path, &s) != 0) return false; - free = (uint64)s.f_frsize * s.f_bavail >> 20; + free = (uint64)s.f_frsize * s.f_bavail; } #endif if (tot != NULL) *tot = free; |