diff options
| author | Benjamin Fair <benjaminfair@google.com> | 2020-01-13 13:44:58 -0800 |
|---|---|---|
| committer | Benjamin Fair <benjaminfair@google.com> | 2020-01-13 13:45:51 -0800 |
| commit | aae4c2e3aff481ab52838569b673912ea2973e64 (patch) | |
| tree | f47292c0e1691cd5208b16a304f67bb208d0d360 /tools | |
| parent | 2aa55347312c400f9dd61a32c8c1e37b1691bb1c (diff) | |
| download | phosphor-ipmi-flash-aae4c2e3aff481ab52838569b673912ea2973e64.tar.gz phosphor-ipmi-flash-aae4c2e3aff481ab52838569b673912ea2973e64.zip | |
tools: increase polling timeout by 5 minutes
This is needed for 64 MiB images.
Signed-off-by: Benjamin Fair <benjaminfair@google.com>
Change-Id: I3e2a63d1c8ae5db956ca8d5553c98d9cc671409c
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/helper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/helper.cpp b/tools/helper.cpp index d3fef48..01a3c79 100644 --- a/tools/helper.cpp +++ b/tools/helper.cpp @@ -38,12 +38,12 @@ bool pollStatus(std::uint16_t session, ipmiblob::BlobInterface* blob) try { - /* sleep for 5 seconds and check 65 times, for a timeout of: 325 + /* sleep for 5 seconds and check 125 times, for a timeout of: 625 * seconds. * TODO: make this command line configurable and provide smaller * default value. */ - static constexpr int commandAttempts = 65; + static constexpr int commandAttempts = 125; int attempts = 0; bool exitLoop = false; |

