Support rusEFI logs

This commit is contained in:
Piotr Rogowski 2022-10-31 23:05:25 +01:00
parent 648b578176
commit 8e5dd04143
No known key found for this signature in database
GPG Key ID: 4A842D702D9C6F8F
4 changed files with 14 additions and 14 deletions

18
package-lock.json generated
View File

@ -17,7 +17,7 @@
"antd": "^4.23.6",
"kbar": "^0.1.0-beta.36",
"lodash.debounce": "^4.0.8",
"mlg-converter": "^0.7.1",
"mlg-converter": "^0.8.0",
"nanoid": "^4.0.0",
"pako": "^2.0.4",
"pocketbase": "^0.8.0-rc1",
@ -41,8 +41,8 @@
"@types/react-dom": "^18.0.8",
"@types/react-redux": "^7.1.24",
"@types/react-router-dom": "^5.3.3",
"@typescript-eslint/eslint-plugin": "^5.41.0",
"@typescript-eslint/parser": "^5.41.0",
"@typescript-eslint/eslint-plugin": "^5.42.0",
"@typescript-eslint/parser": "^5.42.0",
"@vitejs/plugin-react": "^2.2.0",
"eslint": "^8.26.0",
"eslint-plugin-flowtype": "^8.0.3",
@ -7694,9 +7694,9 @@
}
},
"node_modules/mlg-converter": {
"version": "0.7.1",
"resolved": "https://registry.npmjs.org/mlg-converter/-/mlg-converter-0.7.1.tgz",
"integrity": "sha512-XiOeTRJuiaiQj652q+PT6zXsDtacV3bxtP4xKS9CaL2+7KSujNFMixBZCrBrPY8k/SyT5ki0BR8m3WbdW+C73Q==",
"version": "0.8.0",
"resolved": "https://registry.npmjs.org/mlg-converter/-/mlg-converter-0.8.0.tgz",
"integrity": "sha512-npc2ds7cKgTiwtikN5PltGMi39XitDJAXj2TrWGHFWn01vtwQquNg/Y9nTI8KmAg7ZoswQX4CcbqLV4rUU79AA==",
"bin": {
"mlg-converter": "dist/cli.js"
}
@ -16568,9 +16568,9 @@
"dev": true
},
"mlg-converter": {
"version": "0.7.1",
"resolved": "https://registry.npmjs.org/mlg-converter/-/mlg-converter-0.7.1.tgz",
"integrity": "sha512-XiOeTRJuiaiQj652q+PT6zXsDtacV3bxtP4xKS9CaL2+7KSujNFMixBZCrBrPY8k/SyT5ki0BR8m3WbdW+C73Q=="
"version": "0.8.0",
"resolved": "https://registry.npmjs.org/mlg-converter/-/mlg-converter-0.8.0.tgz",
"integrity": "sha512-npc2ds7cKgTiwtikN5PltGMi39XitDJAXj2TrWGHFWn01vtwQquNg/Y9nTI8KmAg7ZoswQX4CcbqLV4rUU79AA=="
},
"moment": {
"version": "2.29.4",

View File

@ -28,7 +28,7 @@
"antd": "^4.23.6",
"kbar": "^0.1.0-beta.36",
"lodash.debounce": "^4.0.8",
"mlg-converter": "^0.7.1",
"mlg-converter": "^0.8.0",
"nanoid": "^4.0.0",
"pako": "^2.0.4",
"pocketbase": "^0.8.0-rc1",
@ -52,8 +52,8 @@
"@types/react-dom": "^18.0.8",
"@types/react-redux": "^7.1.24",
"@types/react-router-dom": "^5.3.3",
"@typescript-eslint/eslint-plugin": "^5.41.0",
"@typescript-eslint/parser": "^5.41.0",
"@typescript-eslint/eslint-plugin": "^5.42.0",
"@typescript-eslint/parser": "^5.42.0",
"@vitejs/plugin-react": "^2.2.0",
"eslint": "^8.26.0",
"eslint-plugin-flowtype": "^8.0.3",

View File

@ -45,7 +45,7 @@ class LogValidator implements ParserInterface {
private checkMSL() {
const lines = this.raw.split('\n');
for (let index = 0; index < lines.length; index++) {
if (lines[index].startsWith('Time')) {
if (lines[index].startsWith('Time') || lines[index].startsWith('RPM')) {
this.isMSLLogs = true;
break;
}

View File

@ -37,7 +37,7 @@ class MslLogParser implements ParserInterface {
continue;
}
if (line.startsWith('Time')) {
if (line.startsWith('Time') || line.startsWith('RPM')) {
unitsIndex = lineIndex + 1;
const fields = line.split('\t');
const units = lines[unitsIndex].trim().split('\t');