[575423] Fix nano vs milliseconds in opcua


Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=575423
Change-Id: I03691bc25b1e2d6a11ddb594c1561d52ab93d3b3
Signed-off-by: Jose Cabral <cabralcochi@gmail.com>
diff --git a/src/com/opc_ua/opcua_local_handler.cpp b/src/com/opc_ua/opcua_local_handler.cpp
index abcc66a..dcbb520 100644
--- a/src/com/opc_ua/opcua_local_handler.cpp
+++ b/src/com/opc_ua/opcua_local_handler.cpp
@@ -98,7 +98,7 @@
             timeToSleepMs = scmMinimumIterationWaitTime;

           }

 

-          mServerNeedsIteration.timedWait(static_cast<unsigned int>(timeToSleepMs));

+          mServerNeedsIteration.timedWait(static_cast<TForteUInt64>(timeToSleepMs) * 1E6);

         }

         retVal = UA_Server_run_shutdown(mUaServer);

         if(UA_STATUSCODE_GOOD == retVal) {