mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
BeefPerf fixes
This commit is contained in:
parent
673d9a18f3
commit
43d7a57c38
3 changed files with 2 additions and 3 deletions
|
@ -703,7 +703,7 @@ namespace BeefPerf
|
||||||
}
|
}
|
||||||
|
|
||||||
#unwarn
|
#unwarn
|
||||||
int selectResult = Socket.Select(&readSet, &writeSet, &exceptSet, 20*1000);
|
int selectResult = Socket.Select(&readSet, &writeSet, &exceptSet, 20);
|
||||||
|
|
||||||
int clientIdx = 0;
|
int clientIdx = 0;
|
||||||
while (true)
|
while (true)
|
||||||
|
|
|
@ -52,7 +52,6 @@ namespace BeefPerf
|
||||||
{
|
{
|
||||||
if (mDataSize + addSize <= mBufSize)
|
if (mDataSize + addSize <= mBufSize)
|
||||||
return;
|
return;
|
||||||
Debug.WriteLine("GrowReserve");
|
|
||||||
Resize(Math.Max(mDataSize + addSize, mDataSize + mDataSize/2));
|
Resize(Math.Max(mDataSize + addSize, mDataSize + mDataSize/2));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ namespace BeefPerf
|
||||||
g.DrawString(scope String()..AppendF("{0}", gApp.mUpdateCnt), 0, 0, .Right, mWidth - 8);
|
g.DrawString(scope String()..AppendF("{0}", gApp.mUpdateCnt), 0, 0, .Right, mWidth - 8);
|
||||||
|
|
||||||
float curY = 64;
|
float curY = 64;
|
||||||
if (!gApp.mListenSocket.IsConnected)
|
if (!gApp.mListenSocket.IsOpen)
|
||||||
{
|
{
|
||||||
using (g.PushColor(0xFFFF4040))
|
using (g.PushColor(0xFFFF4040))
|
||||||
g.DrawString(scope String()..AppendF("Failed to listen on port {0}", gApp.mListenPort), 0, 0, .Right, mWidth - 8);
|
g.DrawString(scope String()..AppendF("Failed to listen on port {0}", gApp.mListenPort), 0, 0, .Right, mWidth - 8);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue