mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07:00
analyzesize: create db on first use
This commit is contained in:
parent
ed85df110e
commit
41731ea084
1 changed files with 4 additions and 1 deletions
|
@ -10,7 +10,10 @@ def print_increase(x, y, name):
|
||||||
else:
|
else:
|
||||||
print("{} decrease by: {} (0x{:08X}) bytes ({}%)".format(name, y-x, y-x, (y-x)*100/x))
|
print("{} decrease by: {} (0x{:08X}) bytes ({}%)".format(name, y-x, y-x, (y-x)*100/x))
|
||||||
dbname = "tools/data.json"
|
dbname = "tools/data.json"
|
||||||
db = json.load(open(dbname,"r"))
|
try:
|
||||||
|
db = json.load(open(dbname,"r"))
|
||||||
|
except FileNotFoundError:
|
||||||
|
db = dict()
|
||||||
|
|
||||||
if len(sys.argv) < 3:
|
if len(sys.argv) < 3:
|
||||||
print("Usage: analazysize.py <info|add|diff> <datasetname>")
|
print("Usage: analazysize.py <info|add|diff> <datasetname>")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue