modify log info.
This commit is contained in:
parent
8d0f02f736
commit
45c591126a
@ -211,19 +211,19 @@ long SensorScheduler::CalcNextTimestamp(int id) {
|
|||||||
}
|
}
|
||||||
if (send_wave_ts > 0 && available_ts > 0) {
|
if (send_wave_ts > 0 && available_ts > 0) {
|
||||||
long min_ts = std::min(send_wave_ts, available_ts);
|
long min_ts = std::min(send_wave_ts, available_ts);
|
||||||
zlog_debug(zct, "[%d] will use nearest time:%s", id, GetUTCTime(min_ts).c_str());
|
zlog_debug(zct, "[%d] next feature send utc time1:%s", id, GetUTCTime(min_ts).c_str());
|
||||||
return min_ts;
|
return min_ts;
|
||||||
}
|
}
|
||||||
if (send_wave_ts + available_ts > 0) {
|
if (send_wave_ts + available_ts > 0) {
|
||||||
long max_ts = std::max(send_wave_ts, available_ts);
|
long max_ts = std::max(send_wave_ts, available_ts);
|
||||||
zlog_debug(zct, "[%d] will use vaild time:%s", id, GetUTCTime(max_ts).c_str());
|
zlog_debug(zct, "[%d] next feature send utc time2:%s", id, GetUTCTime(max_ts).c_str());
|
||||||
return max_ts;
|
return max_ts;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 如果是在当前波形时间窗中,不管是空闲时间窗,还是发送波形的时间窗,下一个时间窗是特征值
|
// 如果是在当前波形时间窗中,不管是空闲时间窗,还是发送波形的时间窗,下一个时间窗是特征值
|
||||||
long available_ts = current_wave_start_ts_ + (nth_eigen_value_slice_ + 1)* eigen_value_send_interval_ + (id - 1) * eigen_value_send_duration_;
|
long available_ts = current_wave_start_ts_ + (nth_eigen_value_slice_ + 1)* eigen_value_send_interval_ + (id - 1) * eigen_value_send_duration_;
|
||||||
zlog_debug(zct, "[%d] next feature send utc time:[%s]", id, GetUTCTime(available_ts).c_str());
|
zlog_debug(zct, "[%d] next feature send utc time3:[%s]", id, GetUTCTime(available_ts).c_str());
|
||||||
return available_ts;
|
return available_ts;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user