small fixes
base/hostinfo.cc: Since we're talking about a u_int64, use %lld. Maybe this should be converted using toNumber in the future. --HG-- extra : convert_revision : f2ae97585d3009c380553313129dfdd212d6716b
This commit is contained in:
parent
1a12f365e0
commit
8296fae15b
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue