Loading int_ssd_download.py +2 −1 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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) Loading x393.py +1 −1 Original line number Diff line number Diff line Loading @@ -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) Loading Loading
int_ssd_download.py +2 −1 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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) Loading
x393.py +1 −1 Original line number Diff line number Diff line Loading @@ -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) Loading