Report memory usage in bytes

This commit is contained in:
Omar Brikaa 2024-09-06 16:26:43 +03:00
parent 09ff4ca79e
commit b3cc3c14e8
2 changed files with 3 additions and 2 deletions

View File

@ -275,7 +275,7 @@ class Job {
} }
switch (key) { switch (key) {
case 'cg-mem': case 'cg-mem':
memory = parse_int(value); memory = parse_int(value) * 1000;
break; break;
case 'exitcode': case 'exitcode':
code = parse_int(value); code = parse_int(value);

View File

@ -301,7 +301,8 @@ Content-Type: application/json
"message": null, "message": null,
"status": null, "status": null,
"cpu_time": 8, "cpu_time": 8,
"wall_time": 154 "wall_time": 154,
"memory": 1160000
} }
} }
``` ```