projects
/
harbour-pedalo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add graph animation; support for line graphs
[harbour-pedalo.git]
/
src
/
statshourcongestion.cpp
diff --git
a/src/statshourcongestion.cpp
b/src/statshourcongestion.cpp
index
a98230e
..
1d049e7
100644
(file)
--- a/
src/statshourcongestion.cpp
+++ b/
src/statshourcongestion.cpp
@@
-23,7
+23,7
@@
void StatsHourCongestion::update() {
int pos;
qDebug() << "Calculating values";
int pos;
qDebug() << "Calculating values";
- values.clear();
+ barvalues.clear();
for (pos = 0; pos < 24; pos++) {
passed[pos] = 0.0;
for (pos = 0; pos < 24; pos++) {
passed[pos] = 0.0;
@@
-58,7
+58,7
@@
void StatsHourCongestion::update() {
if (result > maxval) {
maxval = result;
}
if (result > maxval) {
maxval = result;
}
- values << result;
+ barvalues << result;
}
step = (maxval > 5.0) ? qRound(maxval / 5.0) : (maxval / 5.0);
}
step = (maxval > 5.0) ? qRound(maxval / 5.0) : (maxval / 5.0);