-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fragmentation CPUDB add MConvert.module
example: i-nex.gambas --conv /run/media/michal/fbd26004-de6c-43ba- 92d3-5c15e88a9eee/michal/Baazar/git-i-nex/I-Nex/i-nex/Database/intel /run/media/michal/fbd26004-de6c-43ba- 92d3-5c15e88a9eee/michal/Baazar/git-i-nex/I-Nex/i-nex/Database/i5 "*i5*"
- Loading branch information
Showing
8 changed files
with
55 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
' Gambas module file | ||
|
||
Function Convert(inputS As String, OutputS As String, CPUName As String) | ||
Dim JSON_FILE As Collection | ||
Dim z As Float | ||
Dim NEW_DB As Collection = [("DATABASE"): ""] | ||
Dim BUFFF As String | ||
Dim CPUDBINTEL As New Collection | ||
Dim CPUDBINTELADD As New Collection | ||
JSON_FILE = JSON.Decode(File.Load(inputS)) | ||
CPUDBINTEL = JSON.Decode(File.Load("Database/NULLD")) | ||
For z = 0 To JSON_FILE["DATABASE"].Count - 1 | ||
If JSON_FILE["DATABASE"][z]["PROCESSOR_MODEL_NAME"] Like CPUName Then | ||
Print JSON_FILE["DATABASE"][z]["PROCESSOR_MODEL_NAME"] | ||
Print CPUName | ||
Print z | ||
CPUDBINTEL["DATABASE"].Add(JSON_FILE["DATABASE"][z]) | ||
Endif | ||
Next | ||
|
||
File.Save(OutputS, JSON.Encode(CPUDBINTEL)) | ||
|
||
End |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"DATABASE": [ | ||
] | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.