Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.cmdline
Commits
2ca445e1
Commit
2ca445e1
authored
Mar 01, 2018
by
Samuel GAIST
Browse files
[cache] CachedDataSource is now an iterable class update its use
parent
ad82a8d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
beat/cmdline/cache.py
View file @
2ca445e1
...
...
@@ -113,12 +113,7 @@ def info(config, paths, sizes, index_start, index_end):
counter
=
0
logger
.
info
(
' index:'
)
while
f
.
hasMoreData
():
try
:
data
,
start
,
end
=
f
.
next
()
except
Exception
as
e
:
logger
.
error
(
"Failed to retrieve the next data: %s"
,
e
)
return
1
for
data
,
start
,
end
in
f
:
size
=
len
(
data
.
pack
())
counter
+=
size
...
...
@@ -154,14 +149,7 @@ def view(config, paths, index_start, index_end):
logger
.
info
(
' dataformat: %s'
,
f
.
dataformat
.
name
)
while
f
.
hasMoreData
():
try
:
data
,
start
,
end
=
f
.
next
()
except
Exception
as
e
:
logger
.
error
(
"Failed to retrieve the next data: %s"
,
e
)
return
1
for
data
,
start
,
end
in
f
:
logger
.
extra
(
80
*
'-'
)
if
start
==
end
:
...
...
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