ObjFW  Check-in [3e5b766b40]

Overview
Comment:utils/ofhttp: Fix a typo resulting in wrong ETA
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 3e5b766b40198b96be11135f93e23fb13810ed9e2edefd15ec7468790de98e1a
User & Date: js on 2015-05-29 23:22:19
Other Links: manifest | tags
Context
2015-05-31
14:56
utils/ofhttp: Fix two missing releases in dealloc check-in: 00bcec95bf user: js tags: trunk
2015-05-29
23:22
utils/ofhttp: Fix a typo resulting in wrong ETA check-in: 3e5b766b40 user: js tags: trunk
2015-05-24
19:16
OFTLSSocket: Improved API for easier verification check-in: 94affb5b29 user: js tags: trunk
Changes

Modified utils/ofhttp/ProgressBar.m from [b3212f82f5] to [a7f6535d56].

198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
	else
		[self _drawReceived];
}

- (void)calculateBPSAndETA
{
	_BPS = (float)(_received - _lastReceived) /
	    -[_lastReceivedDate timeIntervalSinceNow];;
	_ETA = (double)(_length - _resumedFrom - _resumedFrom) / _BPS;

	_lastReceived = _received;
	[_lastReceivedDate release];
	_lastReceivedDate = [[OFDate alloc] init];
}

- (void)stop







|
|







198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
	else
		[self _drawReceived];
}

- (void)calculateBPSAndETA
{
	_BPS = (float)(_received - _lastReceived) /
	    -[_lastReceivedDate timeIntervalSinceNow];
	_ETA = (double)(_length - _resumedFrom - _received) / _BPS;

	_lastReceived = _received;
	[_lastReceivedDate release];
	_lastReceivedDate = [[OFDate alloc] init];
}

- (void)stop