Commit 83923dc5 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

a couple bugs fixed

parent 1e98674e
......@@ -139,6 +139,7 @@ for i in range(len(cams)):
# p[1] == sdb2
# hardcoded /dev/sd?1
data_size = pc.read_camogm_disk_file("/dev/"+p[1][0:-1]+"1")
data_size = round(data_size,2)
# bs is in kB
chunk_size = float(args.bs*args.bc)/1024
......@@ -148,7 +149,7 @@ for i in range(len(cams)):
args.n = n_chunks - args.skip
print("Data size: "+str(data_size)+" GB")
print("Download size: "+str(n_chunks)+"x "+str(round(chunk_size,2))+"GB, skipped the first "+str(args.skip)+" chunks")
print(bcolors.BOLDWHITE+"Download size: "+str(args.n)+"x "+str(round(chunk_size,2))+"GB, skipped the first "+str(args.skip)+" chunks"+bcolors.ENDC)
pc.download(args.dest,"/dev/"+p[1],args.bs,args.bc,args.skip,args.n)
dirs.remove(d)
......
......@@ -175,7 +175,7 @@ class PC():
# returns the download size from raw partition ((/dev/sd?2))
def read_camogm_disk_file(self,part):
result = ""
result = 0
tmp_mount_point = tempfile.mkdtemp()
print("mounting "+part+" to "+tmp_mount_point)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment