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
3877c7f0
Commit
3877c7f0
authored
May 17, 2017
by
Serge Hallyn
Committed by
GitHub
May 17, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1569 from anevenchanniy/lxc-top/fix_memsw
[lxc-top] Fix memory+swap output in batch mode
parents
cca2cc28
1b67456c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lxc_top.c
src/lxc/tools/lxc_top.c
+2
-2
No files found.
src/lxc/tools/lxc_top.c
View file @
3877c7f0
...
@@ -429,12 +429,12 @@ static void stats_print(const char *name, const struct stats *stats,
...
@@ -429,12 +429,12 @@ static void stats_print(const char *name, const struct stats *stats,
gettimeofday
(
&
time_val
,
NULL
);
gettimeofday
(
&
time_val
,
NULL
);
time_ms
=
(
unsigned
long
long
)
(
time_val
.
tv_sec
)
*
1000
+
(
unsigned
long
long
)
(
time_val
.
tv_usec
)
/
1000
;
time_ms
=
(
unsigned
long
long
)
(
time_val
.
tv_sec
)
*
1000
+
(
unsigned
long
long
)
(
time_val
.
tv_usec
)
/
1000
;
printf
(
"%"
PRIu64
",%s,%"
PRIu64
",%"
PRIu64
",%"
PRIu64
printf
(
"%"
PRIu64
",%s,%"
PRIu64
",%"
PRIu64
",%"
PRIu64
",%"
PRIu64
",%"
PRIu64
",%"
PRIu64
",%"
PRIu64
,
",%"
PRIu64
",%"
PRIu64
",%"
PRIu64
",%"
PRIu64
",%"
PRIu64
,
(
uint64_t
)
time_ms
,
name
,
(
uint64_t
)
stats
->
cpu_use_nanos
,
(
uint64_t
)
time_ms
,
name
,
(
uint64_t
)
stats
->
cpu_use_nanos
,
(
uint64_t
)
stats
->
cpu_use_sys
,
(
uint64_t
)
stats
->
cpu_use_sys
,
(
uint64_t
)
stats
->
cpu_use_user
,
(
uint64_t
)
stats
->
io_service_bytes
.
total
,
(
uint64_t
)
stats
->
cpu_use_user
,
(
uint64_t
)
stats
->
io_service_bytes
.
total
,
(
uint64_t
)
stats
->
io_serviced
.
total
,
(
uint64_t
)
stats
->
mem_used
,
(
uint64_t
)
stats
->
io_serviced
.
total
,
(
uint64_t
)
stats
->
mem_used
,
(
uint64_t
)
stats
->
kmem_used
);
(
uint64_t
)
stats
->
memsw_used
,
(
uint64_t
)
stats
->
kmem_used
);
}
}
}
}
...
...
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