mirror of
https://github.com/engineer-man/piston.git
synced 2025-05-01 17:36:28 +02:00
Report memory usage in bytes
This commit is contained in:
parent
09ff4ca79e
commit
b3cc3c14e8
2 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue