chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
core: fix SetUnitProperties
[elogind.git]
/
src
/
bootchart
/
svg.c
diff --git
a/src/bootchart/svg.c
b/src/bootchart/svg.c
index 859cf81c220027ff72822651965fba100071e629..c088cad7f572c422bd9b64d635910fe905f7874b 100644
(file)
--- a/
src/bootchart/svg.c
+++ b/
src/bootchart/svg.c
@@
-3,7
+3,7
@@
/***
This file is part of systemd.
/***
This file is part of systemd.
- Copyright (C) 2009-2013 Intel Co
pr
oration
+ Copyright (C) 2009-2013 Intel Co
rp
oration
Authors:
Auke Kok <auke-jan.h.kok@intel.com>
Authors:
Auke Kok <auke-jan.h.kok@intel.com>
@@
-81,7
+81,7
@@
static void svg_header(void) {
struct list_sample_data *sampledata_last;
sampledata = head;
struct list_sample_data *sampledata_last;
sampledata = head;
- LIST_FIND_TAIL(
struct list_sample_data,
link, sampledata, head);
+ LIST_FIND_TAIL(link, sampledata, head);
sampledata_last = head;
LIST_FOREACH_BEFORE(link, sampledata, head) {
sampledata_last = sampledata;
sampledata_last = head;
LIST_FOREACH_BEFORE(link, sampledata, head) {
sampledata_last = sampledata;
@@
-420,13
+420,10
@@
static void svg_pss_graph(void) {
i = 1;
LIST_FOREACH_BEFORE(link, sampledata, head) {
int bottom;
i = 1;
LIST_FOREACH_BEFORE(link, sampledata, head) {
int bottom;
- int top;
+ int top
= 0
;
struct ps_sched_struct *prev_sample;
struct ps_sched_struct *cross_place;
struct ps_sched_struct *prev_sample;
struct ps_sched_struct *cross_place;
- bottom = 0;
- top = 0;
-
/* put all the small pss blocks into the bottom */
ps = ps_first->next_ps;
while (ps->next_ps) {
/* put all the small pss blocks into the bottom */
ps = ps_first->next_ps;
while (ps->next_ps) {
@@
-533,8
+530,8
@@
static void svg_io_bi_bar(void) {
int max_here = 0;
int i;
int k;
int max_here = 0;
int i;
int k;
- struct list_sample_data *start_sampledata
= sampledata
;
- struct list_sample_data *stop_sampledata
= sampledata
;
+ struct list_sample_data *start_sampledata;
+ struct list_sample_data *stop_sampledata;
svg("<!-- IO utilization graph - In -->\n");
svg("<!-- IO utilization graph - In -->\n");
@@
-599,10
+596,7
@@
static void svg_io_bi_bar(void) {
int stop;
int diff;
double tot;
int stop;
int diff;
double tot;
- double pbi;
-
- tot = 0;
- pbi = 0;
+ double pbi = 0;
start = MAX(i - ((range / 2) - 1), 0);
stop = MIN(i + (range / 2), samples);
start = MAX(i - ((range / 2) - 1), 0);
stop = MIN(i + (range / 2), samples);
@@
-647,8
+641,8
@@
static void svg_io_bo_bar(void) {
int max_here = 0;
int i;
int k;
int max_here = 0;
int i;
int k;
- struct list_sample_data *start_sampledata
= sampledata
;
- struct list_sample_data *stop_sampledata
= sampledata
;
+ struct list_sample_data *start_sampledata;
+ struct list_sample_data *stop_sampledata;
svg("<!-- IO utilization graph - out -->\n");
svg("<!-- IO utilization graph - out -->\n");