summaryrefslogtreecommitdiff
path: root/std/node/_os.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/node/_os.ts')
-rw-r--r--std/node/_os.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/std/node/_os.ts b/std/node/_os.ts
index 773cca8bd..14bf20abd 100644
--- a/std/node/_os.ts
+++ b/std/node/_os.ts
@@ -123,9 +123,9 @@ export function endianness(): "BE" | "LE" {
return new Int16Array(buffer)[0] === 256 ? "LE" : "BE";
}
-/** Not yet implemented */
+/** Return free memory amount */
export function freemem(): number {
- notImplemented(SEE_GITHUB_ISSUE);
+ return Deno.systemMemoryInfo().free;
}
/** Not yet implemented */
@@ -185,9 +185,9 @@ export function tmpdir(): string | null {
notImplemented(SEE_GITHUB_ISSUE);
}
-/** Not yet implemented */
+/** Return total physical memory amount */
export function totalmem(): number {
- notImplemented(SEE_GITHUB_ISSUE);
+ return Deno.systemMemoryInfo().total;
}
/** Not yet implemented */