mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-12-28 19:31:19 +08: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:
|
||||
print("{} decrease by: {} (0x{:08X}) bytes ({}%)".format(name, y-x, y-x, (y-x)*100/x))
|
||||
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:
|
||||
print("Usage: analazysize.py <info|add|diff> <datasetname>")
|
||||
|
|
Loading…
Reference in a new issue