Commit 13ac23f7 authored by Arjen Hiemstra's avatar Arjen Hiemstra
Browse files

Do not set a history amount if we do not have a valid update interval

Rather than setting it to 100, set it to 0 so it is at least very clear
when things are broken.
parent c370f22f
......@@ -93,7 +93,7 @@ Charts.LineChart {
}
interval: sensorsModel.ready ? sensorsModel.headerData(index, Qt.Horizontal, Sensors.SensorDataModel.UpdateInterval) : 0
maximumHistory: interval > 0 ? (chart.historyAmount * 1000) / interval : 100
maximumHistory: interval > 0 ? (chart.historyAmount * 1000) / interval : 0
fillMode: Charts.HistoryProxySource.FillFromEnd
}
onObjectAdded: {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment