summaryrefslogtreecommitdiff
path: root/src/unix.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-01-16 12:59:47 +0000
committerrubidium <rubidium@openttd.org>2009-01-16 12:59:47 +0000
commitb1a33a494f7a9510f600cb18e771b35905597be6 (patch)
treeeef2f6bd0f7e1c471cd04882c93477dbfe6df764 /src/unix.cpp
parentcdd3676478bc50ec10960146034e93d522c86142 (diff)
downloadopenttd-b1a33a494f7a9510f600cb18e771b35905597be6.tar.xz
(svn r15104) -Codechange: unify the resolving of the xyz kbytes/megabytes strings.
Diffstat (limited to 'src/unix.cpp')
-rw-r--r--src/unix.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/unix.cpp b/src/unix.cpp
index ea86c16c8..8212b61b2 100644
--- a/src/unix.cpp
+++ b/src/unix.cpp
@@ -63,9 +63,9 @@ void FiosGetDrives()
return;
}
-bool FiosGetDiskFreeSpace(const char *path, uint32 *tot)
+bool FiosGetDiskFreeSpace(const char *path, uint64 *tot)
{
- uint32 free = 0;
+ uint64 free = 0;
#ifdef HAS_STATVFS
# ifdef __APPLE__
@@ -76,7 +76,7 @@ bool FiosGetDiskFreeSpace(const char *path, uint32 *tot)
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;