X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fbootchart%2Fsvg.c;h=a53f98a941fea55d7fe980e144dde85ceb6d9623;hb=6b56a65123720325ad5084b3e888bf6bfe89c148;hp=97c8237aaa26e62f446b588ea9878edfdd63c6b3;hpb=4987623d011c534a22a490b17a8e0ec81d1ac30c;p=elogind.git
diff --git a/src/bootchart/svg.c b/src/bootchart/svg.c
index 97c8237aa..a53f98a94 100644
--- a/src/bootchart/svg.c
+++ b/src/bootchart/svg.c
@@ -1093,12 +1093,13 @@ static void svg_ps_bars(void) {
w = starttime;
/* text label of process name */
- svg(" [%i]%.03fs\n",
+ svg(" [%i]%.03fs %s\n",
time_to_graph(w - graph_start) + 5.0,
ps_to_graph(j) + 14.0,
ps->name,
ps->pid,
- (ps->last->runtime - ps->first->runtime) / 1000000000.0);
+ (ps->last->runtime - ps->first->runtime) / 1000000000.0,
+ arg_show_cgroup ? ps->cgroup : "");
/* paint lines to the parent process */
if (ps->parent) {
/* horizontal part */
@@ -1248,7 +1249,7 @@ static void svg_top_ten_pss(void) {
void svg_do(const char *build) {
struct ps_struct *ps;
- memset(&str, 0, sizeof(str));
+ memzero(&str, sizeof(str));
ps = ps_first;