Skip to content
This repository was archived by the owner on May 21, 2024. It is now read-only.

Commit

Permalink
Print correct number of download attempts.
Browse files Browse the repository at this point in the history
Turns out math is hard.

Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
  • Loading branch information
pattivacek committed Apr 15, 2019
1 parent b67da89 commit 49ecf80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libaktualizr/primary/sotauptaneclient.cc
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ std::pair<bool, Uptane::Target> SotaUptaneClient::downloadImage(Uptane::Target t
}
}
if (!success) {
LOG_ERROR << "Download unsuccessful after " << tries << " attempts.";
LOG_ERROR << "Download unsuccessful after " << tries - 1 << " attempts.";
}

// send this asynchronously before `sendEvent`, so that the report timestamp
Expand Down

0 comments on commit 49ecf80

Please sign in to comment.