wsd: 3600000 * 1000 would not fit into an int
Change-Id: Ib1ada4e2c51d1eff846130669255582e2cef097d Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92406 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
This commit is contained in:
parent
ec3341591b
commit
ee1d96fd05
1 changed files with 2 additions and 2 deletions
|
@ -3564,8 +3564,8 @@ int LOOLWSD::innerMain()
|
|||
UnitWSD::get().invokeTest();
|
||||
|
||||
// This timeout affects the recovery time of prespawned children.
|
||||
const int waitMicroS = UnitWSD::isUnitTesting() ?
|
||||
UnitWSD::get().getTimeoutMilliSeconds() * 1000 / 4 :
|
||||
const long waitMicroS = UnitWSD::isUnitTesting() ?
|
||||
static_cast<long>(UnitWSD::get().getTimeoutMilliSeconds()) * 1000 / 4 :
|
||||
SocketPoll::DefaultPollTimeoutMicroS * 4;
|
||||
mainWait.poll(waitMicroS);
|
||||
|
||||
|
|
Loading…
Reference in a new issue