opt.: shell_func only get useful mem data

This commit is contained in:
lollipopkit
2023-10-13 12:48:54 +08:00
parent 7388ad4524
commit a2bb4f1287
11 changed files with 43 additions and 52 deletions

View File

@@ -20,12 +20,14 @@ enum SystemType {
return null;
}
bool isSegmentsLenMatch(int len) {
bool isSegmentsLenMatch(int len) => len == segmentsLen;
int get segmentsLen {
switch (this) {
case SystemType.linux:
return len == StatusCmdType.values.length;
return StatusCmdType.values.length;
case SystemType.bsd:
return len == BSDStatusCmdType.values.length;
return BSDStatusCmdType.values.length;
}
}
}