mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
vjudge.spoj: fix memory display
This commit is contained in:
1 parent
4881165730
commit
0b0e26e917
2 files changed
+2
-2
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/vjudge",
|
||||
"version": "1.1.0",
|
||||
"version": "1.1.1",
|
||||
"description": "Submit problems to remote oj",
|
||||
"main": "package.json",
|
||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||
|
||||
@@ -161,7 +161,7 @@ langs: ${JSON.stringify(langs)}`),
|
||||
const timestr = document.querySelector(`#statustime_${id}`).children[0].innerHTML.trim();
|
||||
const time = timestr === '-' ? 0 : (+timestr) * 1000;
|
||||
const memorystr = document.querySelector(`#statusmem_${id}`).innerHTML.trim().toLowerCase();
|
||||
const memory = memorystr === '-' ? 0 : parseMemoryMB(memorystr) / 1024;
|
||||
const memory = memorystr === '-' ? 0 : parseMemoryMB(memorystr) * 1024;
|
||||
await next({
|
||||
message: document.querySelector(`#statusres_${id}`).childNodes[0].nodeValue.trim(),
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user