diff --git a/daemon/remote/BinRpc.cpp b/daemon/remote/BinRpc.cpp index 4d26bc2f..0a9c5cc1 100644 --- a/daemon/remote/BinRpc.cpp +++ b/daemon/remote/BinRpc.cpp @@ -671,7 +671,8 @@ void ListBinCommand::Execute() } uint32 sizeHi, sizeLo; - ListResponse.m_downloadRate = htonl(Util::SafeIntCast(g_StatMeter->CalcCurrentDownloadSpeed())); + uint32 downloadRate = Util::SafeIntCast(g_StatMeter->CalcCurrentDownloadSpeed()); + ListResponse.m_downloadRate = htonl(downloadRate); Util::SplitInt64(remainingSize, &sizeHi, &sizeLo); ListResponse.m_remainingSizeHi = htonl(sizeHi); ListResponse.m_remainingSizeLo = htonl(sizeLo);