Small Optimizations

This commit is contained in:
NeeEoo
2024-04-05 21:21:19 +02:00
parent 7b279bfed0
commit 8174fef53d
6 changed files with 17 additions and 28 deletions
+1 -1
View File
@@ -134,7 +134,7 @@ class MemoryUtil {
if (process.exitCode() != 0) return "Unknown";
var lines = process.stdout.readAll().toString().split("\n");
for (line in lines) {
if (line.indexOf("Type:") == 0) {
if (line.startsWith("Type:")) {
return line.substring("Type:".length).trim();
}
}