vjudge.spoj: fix memory display

This commit is contained in:
undefined committed 2021-06-30 21:28:27 +08:00
1 parent 4881165730
commit 0b0e26e917
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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",
+1 -1
View File
@@ -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(),
});