Whamcloud - gitweb
LU-5123 procfs: u64 helper does not respect multiplier
[fs/lustre-release.git] / lustre / obdclass / lprocfs_status.c
index d81ebc3..885b4d4 100644 (file)
@@ -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;