From 38684501c912458a008a1365a39b095a3b2327af Mon Sep 17 00:00:00 2001 From: david hill Date: Thu, 22 Mar 2018 13:46:40 -0500 Subject: [PATCH] MCOL-1222 - changed the delay from 10 to 3 seconds --- oam/oamcpp/liboamcpp.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/oam/oamcpp/liboamcpp.cpp b/oam/oamcpp/liboamcpp.cpp index aab98c5b8..649d86f13 100644 --- a/oam/oamcpp/liboamcpp.cpp +++ b/oam/oamcpp/liboamcpp.cpp @@ -8844,10 +8844,11 @@ namespace oam SystemStatus systemstatus; SystemProcessStatus systemprocessstatus; bool bfirst = true; - - for (int i = 0 ; i < 18 ; i ++) + int dot = 0; + + for (int i = 0 ; i < 120 ; i ++, dot ++) { - sleep (10); + sleep (3); try { getSystemStatus(systemstatus); @@ -8880,7 +8881,11 @@ namespace oam exceptionControl("waitForActive", API_FAILURE); } - cout << "." << flush; + if (dot >= 3 ) + { + cout << "." << flush; + dot=0; + } // Check DMLProc for a switch to BUSY_INIT. // In such a case, we need to print a message that rollbacks @@ -8907,7 +8912,7 @@ namespace oam catch (...) { // At some point, we need to give up, ProcMon just isn't going to respond. - if (i > 18) // 3 minutes + if (i > 60) // 3 minutes { cout << endl << endl << "TIMEOUT: ProcMon not responding to getSystemStatus"; break;