Skip to content

Commit

Permalink
SVGraphPanel
Browse files Browse the repository at this point in the history
-correct getPnts for graph
  • Loading branch information
Tyill committed Aug 13, 2019
1 parent e65a13c commit a727d31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SVGraphPanel/src/wdgGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,8 @@ QVector<QVector<QPair<int, int>>> wdgGraph::getSignalPnts(signalData* sign, bool
tmMinInterval = sign->buffData[iBuf].beginTime;
tmMaxInterval = qMin(tmMaxInterval, sign->buffMaxTime);

bool isDischPnts = (cng.mode != SV_Graph::modeGr::viewer) || ((tmMaxInterval - tmMinInterval) < 12 * 60 * 60 * 1000); // < 12 часов
bool isDischPnts = (cng.mode != SV_Graph::modeGr::viewer) ||
((tmMaxInterval - tmMinInterval) < 12 * 60 * 60 * 1000 * SV_CYCLEREC_MS / 100); // < 12 часов с учетом периода записи

if (isDischPnts){
// разряженный график
Expand Down

0 comments on commit a727d31

Please sign in to comment.