@typeberry/lib 0.8.3-43d8627 → 0.8.3-f8c637a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -115,7 +115,7 @@ export function measure(id) {
|
|
|
115
115
|
}
|
|
116
116
|
const BYTES_IN_MB = 1024 * 1024;
|
|
117
117
|
const toMb = (bytes) => (bytes / BYTES_IN_MB).toFixed(1);
|
|
118
|
-
const signedMb = (bytes) => `${bytes >= 0 ? "+" : ""}${toMb(bytes)}`;
|
|
118
|
+
const signedMb = (bytes) => `${bytes >= 0 ? "+" : "-"}${toMb(bytes)}`;
|
|
119
119
|
/** Raw process memory usage, or `null` in environments without `process` (e.g. browser). */
|
|
120
120
|
function rawMemoryUsage() {
|
|
121
121
|
if (isBrowser() || typeof process.memoryUsage !== "function") {
|