mirror of
https://github.com/qwjyh/xdbm
synced 2024-12-05 04:51:04 +09:00
update: don't display devices with no backups in cmd_status
This commit is contained in:
parent
af1b56eee2
commit
7e043a652c
1 changed files with 4 additions and 0 deletions
|
@ -95,6 +95,10 @@ pub(crate) fn cmd_status(
|
||||||
.unwrap_or(5);
|
.unwrap_or(5);
|
||||||
|
|
||||||
for (backup_device, covering_backups) in covering_backup {
|
for (backup_device, covering_backups) in covering_backup {
|
||||||
|
if covering_backups.is_empty() {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
println!("Device: {}", backup_device.name());
|
println!("Device: {}", backup_device.name());
|
||||||
for (backup, path_from_backup) in covering_backups {
|
for (backup, path_from_backup) in covering_backups {
|
||||||
let (last_backup, style) = match backup.last_backup() {
|
let (last_backup, style) = match backup.last_backup() {
|
||||||
|
|
Loading…
Reference in a new issue