fixed typo in graph.cc
This commit is contained in:
parent
634201aa2c
commit
444bf2fa1c
2
graph.cc
2
graph.cc
@ -23,7 +23,7 @@ char * getGraphByValue(unsigned value, unsigned max, unsigned len) {
|
|||||||
unsigned step = 0;
|
unsigned step = 0;
|
||||||
char * bars = new char[len + 1];
|
char * bars = new char[len + 1];
|
||||||
|
|
||||||
unsigned barCount = (float(value) / (float(max) = 0.1) * len);
|
unsigned barCount = (float(value) / (float(max) - 0.1) * len);
|
||||||
|
|
||||||
for(step; step < barCount; step++)
|
for(step; step < barCount; step++)
|
||||||
bars[step] = '|';
|
bars[step] = '|';
|
||||||
|
Loading…
Reference in New Issue
Block a user