@@ -21,8 +21,8 CosinusProvider::retrieveData(const DataProviderParameters ¶meters) const | |||
|
21 | 21 | auto scalarSeries |
|
22 | 22 | = std::make_unique<ScalarSeries>(end - start, QStringLiteral("t"), QStringLiteral("")); |
|
23 | 23 | |
|
24 | for (auto time = start; time < end; ++time) { | |
|
25 | auto dataIndex = time - start; | |
|
24 | auto dataIndex = 0; | |
|
25 | for (auto time = start; time < end; ++time, ++dataIndex) { | |
|
26 | 26 | scalarSeries->setData(dataIndex, time, std::cos(time)); |
|
27 | 27 | } |
|
28 | 28 |
General Comments 0
You need to be logged in to leave comments.
Login now