mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +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
@@ -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