summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2019-08-13 13:47:36 -0700
committerPatrick Venture <venture@google.com>2019-08-14 10:18:21 -0700
commit69abbc6a6a483061e40e2dc68511dbf424a3b96a (patch)
treeff2ae9c245cd300928b4ed92933db7a8c3ccaf1d /tools
parent9cce5a26729f4485676999e3f8eae0aec4fffaa0 (diff)
downloadphosphor-ipmi-flash-69abbc6a6a483061e40e2dc68511dbf424a3b96a.tar.gz
phosphor-ipmi-flash-69abbc6a6a483061e40e2dc68511dbf424a3b96a.zip
tools: bump up timeout for polling to ~5.5 minutes
Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I384734c592e39a01c5531d3d7d6c79474c2b0b44
Diffstat (limited to 'tools')
-rw-r--r--tools/helper.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/helper.cpp b/tools/helper.cpp
index ad2c60d..d3fef48 100644
--- a/tools/helper.cpp
+++ b/tools/helper.cpp
@@ -38,7 +38,12 @@ bool pollStatus(std::uint16_t session, ipmiblob::BlobInterface* blob)
try
{
- static constexpr int commandAttempts = 20;
+ /* sleep for 5 seconds and check 65 times, for a timeout of: 325
+ * seconds.
+ * TODO: make this command line configurable and provide smaller
+ * default value.
+ */
+ static constexpr int commandAttempts = 65;
int attempts = 0;
bool exitLoop = false;
OpenPOWER on IntegriCloud