Reintegrated debug branch

This commit is contained in:
Tom Keffer
2011-04-11 00:14:44 +00:00

View File

@@ -221,6 +221,8 @@ class VantagePro (object) :
# be unused records, which are filled with 0xff:
if _page[1+52*_index:53+52*_index] == 52*chr(0xff) :
# This record has never been used. We're done.
syslog.syslog(syslog.LOG_DEBUG, "VantagePro: empty record page %d; index %d" \
% (unused_ipage, _index))
return
# Unpack the raw archive packet:
_packet = unpackArchivePacket(_page[1+52*_index:53+52*_index])
@@ -239,6 +241,10 @@ class VantagePro (object) :
# decline up to the DST delta.
if _record['dateTime'] is None or _record['dateTime'] + self.dst_delta <= _last_good_ts :
# The time stamp is declining. We're done.
syslog.syslog(syslog.LOG_DEBUG, "VantagePro: time stamps declining. Record timestamp %s" \
% weeutil.weeutil.timestamp_to_string(_record['dateTime']))
syslog.syslog(syslog.LOG_DEBUG, " **** Last good timestamp %s" \
% weeutil.weeutil.timestamp_to_string(_last_good_ts))
return
# Augment the record with the data from the accumulators:
self.archiveAccumulators(_record)