Show SMART for parent dev if child dev selected
This commit is contained in:
parent
6f5a25d65d
commit
6a67052d83
1 changed files with 4 additions and 1 deletions
|
|
@ -859,11 +859,14 @@ def run_ddrescue(state, pass_settings):
|
||||||
height_ddrescue = height - height_smart - height_journal
|
height_ddrescue = height - height_smart - height_journal
|
||||||
|
|
||||||
# Show SMART status
|
# Show SMART status
|
||||||
|
smart_dev = state.source_path
|
||||||
|
if state.source.parent:
|
||||||
|
smart_dev = state.source.parent
|
||||||
smart_pane = tmux_splitw(
|
smart_pane = tmux_splitw(
|
||||||
'-bdvl', str(height_smart),
|
'-bdvl', str(height_smart),
|
||||||
'-PF', '#D',
|
'-PF', '#D',
|
||||||
'watch', '--color', '--no-title', '--interval', '300',
|
'watch', '--color', '--no-title', '--interval', '300',
|
||||||
'ddrescue-tui-smart-display', state.source_path)
|
'ddrescue-tui-smart-display', smart_dev)
|
||||||
|
|
||||||
# Show systemd journal output
|
# Show systemd journal output
|
||||||
journal_pane = tmux_splitw(
|
journal_pane = tmux_splitw(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue