mirror of https://github.com/aria2/aria2
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Casted to unsigned int to suppress compiler warning on netbsd. * src/BtRuntime.hpull/1/head
parent
43796accda
commit
1982ebaf1f
|
@ -1,3 +1,8 @@
|
|||
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Casted to unsigned int to suppress compiler warning on netbsd.
|
||||
* src/BtRuntime.h
|
||||
|
||||
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Assign the value of tv.tv_sec to time_t timesec instead of giving
|
||||
|
|
|
@ -117,7 +117,7 @@ public:
|
|||
void setMaxPeers(unsigned int maxPeers)
|
||||
{
|
||||
_maxPeers = maxPeers;
|
||||
_minPeers = maxPeers*0.8;
|
||||
_minPeers = static_cast<unsigned int>(maxPeers*0.8);
|
||||
if(_minPeers == 0 && maxPeers != 0) {
|
||||
_minPeers = maxPeers;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue