Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions sdb/commands/zfs/histograms.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@ def print_histogram(hist: drgn.Object,
max_count = count

HISTOGRAM_WIDTH_MAX = 40
if max_count < HISTOGRAM_WIDTH_MAX:
max_count = HISTOGRAM_WIDTH_MAX
max_count = max(max_count, HISTOGRAM_WIDTH_MAX)

if min_bucket > max_bucket:
print(f'{" " * indent}** No histogram data available **')
Expand Down
6 changes: 6 additions & 0 deletions sdb/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ def invoke(myprog: drgn.Program, first_input: Iterable[drgn.Object],
# at the end.
#
if shell_cmd is not None:
#
# This is a false-positive from pylint as we need
# to explicitly wait for shell_proc to be done and
# re-arrange our std_out.
#
# pylint: disable=consider-using-with
shell_proc = subprocess.Popen(shell_cmd,
shell=True,
stdin=subprocess.PIPE,
Expand Down