mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-13 22:12:15 +00:00
ls: simplify the judgment condition when list active containers
Signed-off-by: 0x0916 <w@laoqinren.net>
This commit is contained in:
parent
b4f185c70d
commit
045e2de34a
@ -356,7 +356,7 @@ static int ls_get(struct ls **m, size_t *size, const struct lxc_arguments *args,
|
||||
}
|
||||
|
||||
/* Do not do more work than is necessary right from the start. */
|
||||
if (args->ls_active || (args->ls_active && args->ls_frozen))
|
||||
if (args->ls_active || args->ls_frozen)
|
||||
num = list_active_containers(path, &containers, NULL);
|
||||
else
|
||||
num = list_all_containers(path, &containers, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user