Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
95822f32
Commit
95822f32
authored
Jan 15, 2016
by
Explorer09
Browse files
Fix prevItemSums[0] value error.
(Stupid me for forgetting to delete the line when changing code in commit
5c18866e
)
parent
a94b0466
Changes
1
Hide whitespace changes
Inline
Side-by-side
Meter.c
View file @
95822f32
...
...
@@ -421,7 +421,6 @@ static void GraphMeterMode_draw(Meter* this, int x, int y, int w) {
double
*
prevItemSums
=
data
->
prevItemSums
;
double
*
currentItemSums
=
data
->
currentItemSums
;
currentItemSums
[
0
]
=
this
->
values
[
0
];
for
(
int
i
=
0
;
i
<
items
;
i
++
)
{
prevItemSums
[
i
]
=
currentItemSums
[
i
];
currentItemSums
[
i
]
=
((
i
>
0
)
?
currentItemSums
[
i
-
1
]
:
0
.
0
)
+
this
->
values
[
i
];
...
...
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