*** empty log message ***

This commit is contained in:
Mike Goslin 2000-12-20 02:58:32 +00:00
parent 4f9ef24895
commit e56b75d5f0
3 changed files with 7 additions and 2 deletions

View File

@ -91,8 +91,10 @@ get_bytes_written(void) const {
<< "initiated" << endl;
return 0.0;
}
nassertr(_current_status != NULL, 0);
if (_current_status != NULL)
return _current_status->_total_bytes_written;
else
return _total_bytes_written;
}
////////////////////////////////////////////////////////////////////

View File

@ -68,6 +68,7 @@ Downloader(void) {
_initiated = false;
_ever_initiated = false;
_TCP_stack_initialized = false;
_total_bytes_written = 0;
}
////////////////////////////////////////////////////////////////////
@ -383,6 +384,7 @@ cleanup(void) {
// connection when the download is complete
_connected = false;
_dest_stream.close();
_total_bytes_written = _current_status->_total_bytes_written;
delete _current_status;
_initiated = false;
}

View File

@ -147,6 +147,7 @@ private:
DownloadStatus *_current_status;
bool _got_any_data;
int _total_bytes_written;
double _tlast;
double _tfirst;