projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f696ca
)
Do not ellipsize cgroups when showing slices in --full mode (#3560)
author
Ian Lee
<Ian.rob.lee@Gmail.com>
Tue, 21 Jun 2016 14:10:31 +0000
(15:10 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 21 Jun 2016 14:10:31 +0000
(16:10 +0200)
Do not ellipsize cgroups when showing slices in --full mode
src/shared/bus-unit-util.c
patch
|
blob
|
history
diff --git
a/src/shared/bus-unit-util.c
b/src/shared/bus-unit-util.c
index
6fc201b
..
04471e2
100644
(file)
--- a/
src/shared/bus-unit-util.c
+++ b/
src/shared/bus-unit-util.c
@@
-1123,7
+1123,8
@@
static int dump_processes(
assert(n == cg->n_children);
qsort_safe(children, n, sizeof(struct CGroupInfo*), cgroup_info_compare_func);
- n_columns = MAX(LESS_BY(n_columns, 2U), 20U);
+ if (n_columns != 0)
+ n_columns = MAX(LESS_BY(n_columns, 2U), 20U);
for (i = 0; i < n; i++) {
_cleanup_free_ char *pp = NULL;