MJL 20/3/07 Didn't quite get MAX_HTTP_REQUEST_BYTES declaration right (needed long long type), fixed.

r1687 | mle | 2007-03-20 13:46:01 +1100 (Tue, 20 Mar 2007) | 2 lines
This commit is contained in:
Mark Lesha
2007-03-20 13:46:01 +11:00
committed by Douglas Clowes
parent 69d58fbaca
commit bc4813b4ba

View File

@@ -671,7 +671,7 @@ static int AnstoHttpGetHistogram(pHistDriver self, SConnection *pCon,
// Note, actual transfer of such large data sizes in one hit may fail, not recommended.
//#define MAX_HTTP_REQUEST_BYTES 131072
//#define MAX_HTTP_REQUEST_BYTES 1048576
#define MAX_HTTP_REQUEST_BYTES (4096*1048576) // max transfer size 4GB (but your mileage may vary)
#define MAX_HTTP_REQUEST_BYTES (((long long)4096)*1048576) // max transfer size 4GB (but your mileage may vary)
// Do the HTTP data transfer in bite sized pieces
while(end>start)
{
@@ -680,7 +680,7 @@ static int AnstoHttpGetHistogram(pHistDriver self, SConnection *pCon,
snprintf(command,255,"%s?bank=%d&start=%d&end=%d",gethm,bank,
start,start+size);
status = anstoHttpGet(pPriv,command);
if(status != 1){
return HWFault;