Skip to content

Commit 5abd55e

Browse files
authored
chore(*): replace MB with MiB, etc. (#289)
* chore(*): replace MB with MiB, etc. * upload manual
1 parent 7472621 commit 5abd55e

19 files changed

Lines changed: 78 additions & 78 deletions

manual/llmanual.pdf

5 Bytes
Binary file not shown.

manual/src/content/docs/contest.typ

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ int main(int argc, char **argv)
231231

232232
选中一行或多行后按 `Delete` 键,即可删除对应的输入输出文件。
233233

234-
在下面可以设置本测试点的分值、时间限制和空间限制。可以设置的最大分值为 10000000,最大时间限制为 86400000 ms(即 1 天),最大空间限制为 16777216 MB
234+
在下面可以设置本测试点的分值、时间限制和空间限制。可以设置的最大分值为 10000000,最大时间限制为 86400000 ms(即 1 天),最大空间限制为 16777216 MiB
235235

236236
== 批量添加测试点
237237

@@ -307,4 +307,4 @@ int main(int argc, char **argv)
307307

308308
请尽量保证输入输出文件能够按上述方法唯一配对,否则产生的结果不可预料。
309309

310-
其中可以设置的试题总分值最大为 10000000,最大时间限制为 86400000 ms(即 1 天),最大空间限制为 16777216 MB
310+
其中可以设置的试题总分值最大为 10000000,最大时间限制为 86400000 ms(即 1 天),最大空间限制为 16777216 MiB

manual/src/content/docs/issue.typ

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ sudo apt install bubblewrap
4040

4141
== 测评时使用更多栈空间
4242

43-
Windows 平台下可以在 `g++` 编译时添加 `-Wl,--stack=2147483647` 命令来开启约 2048 MB 栈空间。
43+
Windows 平台下可以在 `g++` 编译时添加 `-Wl,--stack=2147483647` 命令来开启约 2048 MiB 栈空间。
4444

4545
Linux 平台下的栈空间限制和题目的内存限制相同。
4646

manual/src/content/docs/settings.typ

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ LemonLime 没有设置编译器时(比如第一次运行)会自动弹出添
2020

2121
/ 默认额外时间限制比率: 新建一个测试点默认的额外时间限制比率,默认为 0.1。(因 LemonLime 采用 realtime 作为判定 TLE 的标准,需要适当调整此值以免造成误判,参见 #link("https://github.com/Project-LemonLime/Project_LemonLime/issues/84")[issues/84]。)
2222

23-
/ 默认空间限制: 新建一个测试点时默认的空间限制,默认为 512 MB,可以设置的最大值为 16777216 MB
23+
/ 默认空间限制: 新建一个测试点时默认的空间限制,默认为 512 MiB,可以设置的最大值为 16777216 MiB
2424

2525
/ 编译时间限制: 测试时允许编译器运行的最长时间,默认为 10000 ms,可以设置的最大值为 86400000 ms,即 1 天。
2626

2727
/ 检验器时间限制: 对于使用自定义校验器的试题,测试时允许校验器运行的最长时间,默认为 10000 ms,可以设置的最大值为 86400000 ms,即 1 天。
2828

29-
/ 源程序大小限制: 测试时可以接受的最大源程序大小,可以设置的最大值为 262144 KB,即 256 MB。(1 KB = 1024 B)
29+
/ 源程序大小限制: 测试时可以接受的最大源程序大小,可以设置的最大值为 262144 KiB,即 256 MiB。(1 KiB = 1024 B)
3030

3131
/ 最大重测次数: 当测试某测试点时程序运行时间不超过时间限制的 1.1 倍,或超时不超过 100ms 时,LemonLime 会对该测试点进行重测。可以设置的最大值为 12。
3232

src/addcompilerwizard.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ auto AddCompilerWizard::validateCurrentPage() -> bool {
232232
text += tr("[Java Compiler]") + "\n";
233233
text += tr("javac Path: ") + ui->javacPath->text() + "\n";
234234
text += tr("java Path: ") + ui->javaPath->text() + "\n";
235-
text += tr("Memory Limit: %1 MB").arg(ui->javaMemoryLimit->text()) + "\n";
235+
text += tr("Memory Limit: %1 MiB").arg(ui->javaMemoryLimit->text()) + "\n";
236236
text += "\n";
237237
}
238238

src/component/exportutil/exportutil.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ auto ExportUtil::getContestantHtmlCode(Contest *contest, Contestant *contestant,
171171
htmlCode += "<td>";
172172

173173
if (memoryUsed[j][k] != -1) {
174-
htmlCode += QString("").asprintf("%.3lf MB", double(memoryUsed[j][k]) / 1024 / 1024);
174+
htmlCode += QString("").asprintf("%.3lf MiB", double(memoryUsed[j][k]) / 1024 / 1024);
175175
} else {
176176
htmlCode += tr("Invalid");
177177
}
@@ -539,7 +539,7 @@ auto ExportUtil::getSmallerContestantHtmlCode(Contest *contest, Contestant *cont
539539
htmlCode += "<td>";
540540

541541
if (memoryUsed[j][k] != -1) {
542-
htmlCode += QString("").asprintf("%.3lf MB", double(memoryUsed[j][k]) / 1024 / 1024);
542+
htmlCode += QString("").asprintf("%.3lf MiB", double(memoryUsed[j][k]) / 1024 / 1024);
543543
} else {
544544
htmlCode += tr("Invalid");
545545
}

src/detaildialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ void DetailDialog::refreshViewer(Contest *_contest, Contestant *_contestant) {
191191
htmlCode += R"(<td nowrap="nowrap" align="center" valign="middle">)";
192192

193193
if (memoryUsed[j][k] != -1) {
194-
htmlCode += QString("").asprintf("%.3lf MB", double(memoryUsed[j][k]) / 1024 / 1024);
194+
htmlCode += QString("").asprintf("%.3lf MiB", double(memoryUsed[j][k]) / 1024 / 1024);
195195
} else {
196196
htmlCode += tr("Invalid");
197197
}

src/exttestcasetable.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ void ExtTestCaseTable::refreshTask(Task *nowTask) {
118118
if (editTask->getTaskType() == Task::AnswersOnly)
119119
tipStr = QString(tr("Test Case #%1:\n%2 Pt")).arg(i + 1).arg(score);
120120
else
121-
tipStr = QString(tr("Test Case #%1:\n%2 Pt\nTime Limit: %3 ms\nMemory Limit: %4 MB"))
121+
tipStr = QString(tr("Test Case #%1:\n%2 Pt\nTime Limit: %3 ms\nMemory Limit: %4 MiB"))
122122
.arg(i + 1)
123123
.arg(score)
124124
.arg(times)
@@ -138,7 +138,7 @@ void ExtTestCaseTable::refreshTask(Task *nowTask) {
138138
addItem(nowrow, 0, QString(tr("#%1 :: %2 pt, %3")).arg(i + 1).arg(score).arg(depStr), tipStr);
139139
else
140140
addItem(nowrow, 0,
141-
QString(tr("#%1 :: %2 pt, TL %3 ms, ML %4 MB, %5"))
141+
QString(tr("#%1 :: %2 pt, TL %3 ms, ML %4 MiB, %5"))
142142
.arg(i + 1)
143143
.arg(score)
144144
.arg(times)

src/forms/addcompilerwizard.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@
907907
<item>
908908
<widget class="QLabel" name="javaMbLabel">
909909
<property name="text">
910-
<string>MB</string>
910+
<string>MiB</string>
911911
</property>
912912
</widget>
913913
</item>

src/forms/addtaskdialog.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
</font>
8585
</property>
8686
<property name="text">
87-
<string>MB</string>
87+
<string>MiB</string>
8888
</property>
8989
</widget>
9090
</item>

0 commit comments

Comments
 (0)