Removed magic number #4712

This commit is contained in:
Jerry (Xinyu Hou) 2015-06-04 14:46:47 -07:00
parent eb3f8aee2a
commit 7795d68c21
1 changed files with 2 additions and 2 deletions

View File

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