Skip to content

Commit

Permalink
#2770 Fixed minimum/maximum calculate in Meta Data Point script - 'de…
Browse files Browse the repository at this point in the history
…sc' was added to the PointValueDAO.POINT_VALUE_FILTER_BEFORE_TIME_STAMP_BASE_ON_DATA_POINT_ID query at the end, now the start value used to calculate statistics should be correct and should not result in incorrect statistics calculation;
  • Loading branch information
Limraj committed Nov 16, 2023
1 parent a6a54d8 commit 9a53c7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/scada_lts/dao/pointvalues/PointValueDAO.java
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public class PointValueDAO implements GenericDaoCR<PointValue> {
public static final String POINT_VALUE_FILTER_BEFORE_TIME_STAMP_BASE_ON_DATA_POINT_ID = " "
+ "pv."+COLUMN_NAME_DATA_POINT_ID+"=? and "
+ "pv."+COLUMN_NAME_TIME_STAMP+"<? "
+ "order by pv."+COLUMN_NAME_TIME_STAMP;
+ "order by pv."+COLUMN_NAME_TIME_STAMP+" desc";

public static final String POINT_VALUE_FILTER_AT_TIME_STAMP_BASE_ON_DATA_POINT_ID = " "
+ "pv."+COLUMN_NAME_DATA_POINT_ID+"=? and "
Expand Down

0 comments on commit 9a53c7a

Please sign in to comment.