diff options
Diffstat (limited to 'payload_state.cc')
-rw-r--r-- | payload_state.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/payload_state.cc b/payload_state.cc index b6c054bb..1d1583b9 100644 --- a/payload_state.cc +++ b/payload_state.cc @@ -373,6 +373,8 @@ void PayloadState::UpdateFailed(ErrorCode error) { case ErrorCode::kInternalLibCurlError: case ErrorCode::kUnresolvedHostError: case ErrorCode::kUnresolvedHostRecovered: + case ErrorCode::kNotEnoughSpace: + case ErrorCode::kDeviceCorrupted: case ErrorCode::kPackageExcludedFromUpdate: LOG(INFO) << "Not incrementing URL index or failure count for this error"; break; @@ -1062,7 +1064,7 @@ void PayloadState::LoadUpdateTimestampStart() { stored_time = Time::FromInternalValue(stored_value); } - // Sanity check: If the time read from disk is in the future + // Validation check: If the time read from disk is in the future // (modulo some slack to account for possible NTP drift // adjustments), something is fishy and we should report and // reset. @@ -1109,7 +1111,7 @@ void PayloadState::LoadUpdateDurationUptime() { stored_delta = TimeDelta::FromInternalValue(stored_value); } - // Sanity-check: Uptime can never be greater than the wall-clock + // Validation check: Uptime can never be greater than the wall-clock // difference (modulo some slack). If it is, report and reset // to the wall-clock difference. TimeDelta diff = GetUpdateDuration() - stored_delta; |