Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
1a35a746
Commit
1a35a746
authored
Apr 16, 2017
by
Christian Brauner
Committed by
GitHub
Apr 16, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1510 from 0x0916/fix-ls
ls: simplify the judgment condition when list active containers
parents
b4f185c7
045e2de3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lxc_ls.c
src/lxc/tools/lxc_ls.c
+1
-1
No files found.
src/lxc/tools/lxc_ls.c
View file @
1a35a746
...
@@ -356,7 +356,7 @@ static int ls_get(struct ls **m, size_t *size, const struct lxc_arguments *args,
...
@@ -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. */
/* 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
);
num
=
list_active_containers
(
path
,
&
containers
,
NULL
);
else
else
num
=
list_all_containers
(
path
,
&
containers
,
NULL
);
num
=
list_all_containers
(
path
,
&
containers
,
NULL
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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