From b3cc3c14e847cd97e392351e019471e5dfa71144 Mon Sep 17 00:00:00 2001 From: Omar Brikaa Date: Fri, 6 Sep 2024 16:26:43 +0300 Subject: [PATCH] Report memory usage in bytes --- api/src/job.js | 2 +- readme.md | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/api/src/job.js b/api/src/job.js index e637a7e..e573843 100644 --- a/api/src/job.js +++ b/api/src/job.js @@ -275,7 +275,7 @@ class Job { } switch (key) { case 'cg-mem': - memory = parse_int(value); + memory = parse_int(value) * 1000; break; case 'exitcode': code = parse_int(value); diff --git a/readme.md b/readme.md index 31ccf5c..b765a5b 100644 --- a/readme.md +++ b/readme.md @@ -301,7 +301,8 @@ Content-Type: application/json "message": null, "status": null, "cpu_time": 8, - "wall_time": 154 + "wall_time": 154, + "memory": 1160000 } } ```