Removed magic number #4712
This commit is contained in:
parent
eb3f8aee2a
commit
7795d68c21
|
@ -31,7 +31,7 @@
|
||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
|
||||||
#define PAUSE_TIME_HACK 0.1
|
#define PAUSE_TIME_HACK 0.1f
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
@ -147,7 +147,7 @@ StreamChunker::sendClipboard(
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stopwatch.getTime() > 0.1f) {
|
if (stopwatch.getTime() > PAUSE_TIME_HACK) {
|
||||||
// make sure we don't read too much from the mock data.
|
// make sure we don't read too much from the mock data.
|
||||||
if (sentLength + chunkSize > size) {
|
if (sentLength + chunkSize > size) {
|
||||||
chunkSize = size - sentLength;
|
chunkSize = size - sentLength;
|
||||||
|
|
Loading…
Reference in New Issue