ASM #648 fix for the top of the hour issue for hourlypp

Change-Id: I794837427ee6f8dbc615cbd010aeb662ccad9896

Former-commit-id: bca2affc40 [formerly 42719b2d5b [formerly 2d36b1b9ed31404ca9c9a4ecfdbf5f1e40c05b54]]
Former-commit-id: 42719b2d5b
Former-commit-id: 0933440c37
This commit is contained in:
Xuezhi.Wei 2014-09-15 18:14:54 +00:00
parent 9fc2f41a93
commit 6afc985ebe

View file

@ -53,6 +53,7 @@ import com.raytheon.uf.edex.decodertools.time.TimeTools;
* 02 Feb 2012 #15845 lbousaidi added check for data that comes in as -999
* 07 May 2013 #15880 lbousaidi changed pPE parameter because it was inserting to the
* wrong hour field.
* 15 Sep 2014 #17129 lbousaidi add a fix for the top of hour issue for hourlypp.
* </pre>
*
* @author mnash
@ -563,7 +564,7 @@ public class GagePP {
if (rec.getPhysicalElement().getCode().charAt(1) == 'C'
&& minute >= MINUTES_PER_HOUR - pOptions.getIntpc()
|| (pPE.charAt(1) == 'P'
|| (rec.getPhysicalElement().getCode().charAt(1) == 'P'
&& minute >= MINUTES_PER_HOUR - pOptions.getIntlppp())) {
hour++;
dt.add(Calendar.HOUR_OF_DAY, 1);