Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
juga
sbws
Commits
43e80f88
Commit
43e80f88
authored
Oct 23, 2018
by
juga
Browse files
Remove arg and condition to rm the link
since the option to remove the bw file link has been removed.
parent
a9a109e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
sbws/lib/v3bwfile.py
View file @
43e80f88
...
...
@@ -884,13 +884,10 @@ class V3BWFile(object):
ys
=
[[
getattr
(
l
,
k
)
for
l
in
self
.
bw_lines
]
for
k
in
attrs
]
return
x
,
ys
,
attrs
def
write
(
self
,
output
,
rm_link
=
False
):
def
write
(
self
,
output
):
if
output
==
'/dev/stdout'
:
log
.
info
(
"Writing to stdout is not supported."
)
return
if
not
self
.
is_min_perc
and
rm_link
:
self
.
rm_link
(
output
)
return
log
.
info
(
'Writing v3bw file to %s'
,
output
)
# To avoid inconsistent reads, the bandwidth data is written to an
# archive path, then atomically symlinked to 'latest.v3bw'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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