mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-14 12:05:58 +08:00
some change
This commit is contained in:
@@ -41,9 +41,14 @@ uint32_t EstimatedLinkCapacityContext::getEstimatedLinkCapacity() {
|
||||
}
|
||||
std::sort(tmp.begin(),tmp.end());
|
||||
if(tmp.empty()){
|
||||
return 0;
|
||||
return 1000;
|
||||
}
|
||||
|
||||
if(tmp.size()<16){
|
||||
return 1000;
|
||||
}
|
||||
return 1000;
|
||||
|
||||
double dur =DurationCountMicroseconds(tmp[tmp.size()/2])/1e6;
|
||||
|
||||
return (uint32_t)(1.0/dur);
|
||||
|
||||
Reference in New Issue
Block a user