Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-tools-x393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-tools-x393
Commits
83923dc5
Commit
83923dc5
authored
Jun 03, 2019
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a couple bugs fixed
parent
1e98674e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
int_ssd_download.py
int_ssd_download.py
+2
-1
x393.py
x393.py
+1
-1
No files found.
int_ssd_download.py
View file @
83923dc5
...
...
@@ -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
)
...
...
x393.py
View file @
83923dc5
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment