Permalink
Browse files

sp bandwith => bandwidth

  • Loading branch information...
1 parent 90e5fbc commit e1604d18e653d4c0b8f041aaf3d9870163508d50 @leereilly committed Sep 13, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 Classes/ASIHTTPRequest.m
View
10 Classes/ASIHTTPRequest.m
@@ -105,7 +105,7 @@ static void ReadStreamClientCallBack(CFReadStreamRef readStream, CFStreamEventTy
// When YES, bandwidth will be automatically throttled when using WWAN (3G/Edge/GPRS)
// Wifi will not be throttled
-static BOOL shouldThrottleBandwithForWWANOnly = NO;
+static BOOL shouldThrottleBandwidthForWWANOnly = NO;
#endif
// Mediates access to the session cookies so requests
@@ -4493,7 +4493,7 @@ + (BOOL)isBandwidthThrottled
#if TARGET_OS_IPHONE
[bandwidthThrottlingLock lock];
- BOOL throttle = isBandwidthThrottled || (!shouldThrottleBandwithForWWANOnly && (maxBandwidthPerSecond > 0));
+ BOOL throttle = isBandwidthThrottled || (!shouldThrottleBandwidthForWWANOnly && (maxBandwidthPerSecond > 0));
[bandwidthThrottlingLock unlock];
return throttle;
#else
@@ -4573,7 +4573,7 @@ + (void)measureBandwidthUsage
// Are we performing bandwidth throttling?
if (
#if TARGET_OS_IPHONE
- isBandwidthThrottled || (!shouldThrottleBandwithForWWANOnly && (maxBandwidthPerSecond))
+ isBandwidthThrottled || (!shouldThrottleBandwidthForWWANOnly && (maxBandwidthPerSecond))
#else
maxBandwidthPerSecond
#endif
@@ -4625,15 +4625,15 @@ + (void)setShouldThrottleBandwidthForWWAN:(BOOL)throttle
[ASIHTTPRequest setMaxBandwidthPerSecond:0];
[bandwidthThrottlingLock lock];
isBandwidthThrottled = NO;
- shouldThrottleBandwithForWWANOnly = NO;
+ shouldThrottleBandwidthForWWANOnly = NO;
[bandwidthThrottlingLock unlock];
}
}
+ (void)throttleBandwidthForWWANUsingLimit:(unsigned long)limit
{
[bandwidthThrottlingLock lock];
- shouldThrottleBandwithForWWANOnly = YES;
+ shouldThrottleBandwidthForWWANOnly = YES;
maxBandwidthPerSecond = limit;
[ASIHTTPRequest registerForNetworkReachabilityNotifications];
[bandwidthThrottlingLock unlock];

0 comments on commit e1604d1

Please sign in to comment.