fixed bugs in upload speed computation

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1007 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2009-02-05 00:01:51 +00:00
parent 6ac5d40df9
commit bb904ea8e8
2 changed files with 28 additions and 11 deletions

View file

@ -65,8 +65,12 @@ virtual int initializeFileAttrs(); /* does for both */
std::string lastRequestor;
uint64_t req_loc;
uint32_t req_size;
clock_t lastTS;
time_t lastTS;
clock_t lastTS_t;
// these two are used for speed estimation
float transfer_rate ;
uint32_t total_size ;
/*
* Mutex Required for stuff below