Skip to content

Commit

Permalink
log QClog with idle sleep mode info
Browse files Browse the repository at this point in the history
  • Loading branch information
jhmigueles committed Oct 30, 2023
1 parent 72cd753 commit 5e498f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/g.getmeta.R
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@ g.getmeta = function(datafile, params_metrics = c(), params_rawdata = c(),
PreviousLastValue = PreviousLastValue,
PreviousLastTime = PreviousLastTime,
epochsize = c(ws3, ws2))
QClog = rbind(QClog, P$QClog)
P = P$P
PreviousLastValue = as.numeric(P[nrow(P), xyzCol])
if (is.null(timeCol)) PreviousLastTime = NULL else PreviousLastTime = as.POSIXct(P[nrow(P), timeCol])
}
Expand Down
1 change: 1 addition & 0 deletions R/g.imputeTimegaps.R
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ g.imputeTimegaps = function(x, xyzCol, timeCol = c(), sf, k=0.25, impute = TRUE,
# QClog
start = as.numeric(as.POSIXct(x[1,1]))
end = as.numeric(as.POSIXct(x[nrow(x),1]))
if (is.null(GapsLength)) GapsLength = 0
QClog = data.frame(start = start, end = end,
blockLengthSeconds = (end - start) / sf,
timegaps_n = NumberOfGaps, timegaps_length = GapsLength)
Expand Down

0 comments on commit 5e498f1

Please sign in to comment.