chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
machine: escape fields we store in /run, so that they can be properly unescaped by...
[elogind.git]
/
src
/
bootchart
/
svg.c
diff --git
a/src/bootchart/svg.c
b/src/bootchart/svg.c
index 97c8237aaa26e62f446b588ea9878edfdd63c6b3..a53f98a941fea55d7fe980e144dde85ceb6d9623 100644
(file)
--- 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 */
w = starttime;
/* text label of process name */
- svg(" <text x=\"%.03f\" y=\"%.03f\"><![CDATA[%s]]> [%i]<tspan class=\"run\">%.03fs</tspan></text>\n",
+ svg(" <text x=\"%.03f\" y=\"%.03f\"><![CDATA[%s]]> [%i]<tspan class=\"run\">%.03fs</tspan>
%s
</text>\n",
time_to_graph(w - graph_start) + 5.0,
ps_to_graph(j) + 14.0,
ps->name,
ps->pid,
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 */
/* 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;
void svg_do(const char *build) {
struct ps_struct *ps;
- mem
set(&str, 0
, sizeof(str));
+ mem
zero(&str
, sizeof(str));
ps = ps_first;
ps = ps_first;