Merge "logd: build breakage aosp-brillo-master @ 2508494"
This commit is contained in:
commit
727aeb6686
1 changed files with 1 additions and 1 deletions
|
@ -286,7 +286,7 @@ void LogKlog::calculateCorrection(const log_time &monotonic,
|
|||
memset(&tm, 0, sizeof(tm));
|
||||
tm.tm_isdst = -1;
|
||||
localtime_r(&now, &tm);
|
||||
if ((tm.tm_gmtoff < 0) && ((-tm.tm_gmtoff) > real.tv_sec)) {
|
||||
if ((tm.tm_gmtoff < 0) && ((-tm.tm_gmtoff) > (long)real.tv_sec)) {
|
||||
real = log_time::EPOCH;
|
||||
} else {
|
||||
real.tv_sec += tm.tm_gmtoff;
|
||||
|
|
Loading…
Reference in a new issue