summaryrefslogtreecommitdiff
path: root/base/hostinfo.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/hostinfo.cc')
-rw-r--r--base/hostinfo.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/hostinfo.cc b/base/hostinfo.cc
index b530ae237..44d7e1bcd 100644
--- a/base/hostinfo.cc
+++ b/base/hostinfo.cc
@@ -49,7 +49,7 @@ procInfo(char *filename, char *target)
while (fp && !feof(fp) && !done) {
if (fgets(line, 80, fp)) {
if (strncmp(line, target, strlen(target)) == 0) {
- sprintf(format, "%s %%ld", target);
+ sprintf(format, "%s %%lld", target);
sscanf(line, format, &usage);
fclose(fp);