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:
Miklos Vajna 2020-04-17 10:52:06 +02:00
parent ec3341591b
commit ee1d96fd05

View file

@ -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);