Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-5123 procfs: u64 helper does not respect multiplier
[fs/lustre-release.git]
/
lustre
/
obdclass
/
lprocfs_status.c
diff --git
a/lustre/obdclass/lprocfs_status.c
b/lustre/obdclass/lprocfs_status.c
index
d81ebc3
..
885b4d4
100644
(file)
--- a/
lustre/obdclass/lprocfs_status.c
+++ b/
lustre/obdclass/lprocfs_status.c
@@
-2487,7
+2487,7
@@
int lprocfs_write_frac_u64_helper(const char *buffer, unsigned long count,
}
}
/* Specified units override the multiplier */
-
if (units
)
+
if (units > 1
)
mult = mult < 0 ? -units : units;
frac *= mult;