Fix special memparse case for maximumInodes value
parent
7244a506ae
commit
82e7227f91
@ -0,0 +1,9 @@
|
||||
"use strict";
|
||||
|
||||
const parseIECBytes = require("./bytes/iec");
|
||||
|
||||
/* NOTE: This parsing module is for a special case; values that are normally handled using the Linux kernel's `memparse` function (which parses memory suffixes like K, M, G, etc.) but that do *not* semantically represent bytes. */
|
||||
|
||||
module.exports = function parseMemparseValue(value) {
|
||||
return parseIECBytes(value).toB().amount;
|
||||
};
|
Loading…
Reference in New Issue