merged RC_1_1 into master
This commit is contained in:
commit
f0bac4cac7
|
@ -288,10 +288,15 @@ if (WIN32)
|
|||
target_link_libraries(torrent-rasterbar wsock32 ws2_32 Iphlpapi)
|
||||
# target Windows Vista or later
|
||||
target_compile_definitions(torrent-rasterbar PUBLIC _WIN32_WINNT=0x0600)
|
||||
target_link_libraries(torrent-rasterbar debug dbghelp)
|
||||
# prevent winsock1 to be included
|
||||
target_compile_definitions(torrent-rasterbar PUBLIC WIN32_LEAN_AND_MEAN)
|
||||
if (MSVC)
|
||||
target_compile_definitions(torrent-rasterbar PUBLIC BOOST_ALL_NO_LIB)
|
||||
# for multicore compilation
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
|
||||
# increase the number of sections for obj files
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
|
|
@ -95,6 +95,8 @@
|
|||
* don't attempt to create empty files on startup, if they already exist
|
||||
* fix force-recheck issue (new files would not be picked up)
|
||||
* fix inconsistency in file_priorities and override_resume_data behavior
|
||||
* fix paused torrents not generating a state update when their ul/dl rate
|
||||
transitions to zero
|
||||
|
||||
1.1.4 release
|
||||
|
||||
|
|
|
@ -922,7 +922,7 @@ namespace libtorrent {
|
|||
//
|
||||
// * ``fixed_slots_choker`` is the traditional choker with a fixed
|
||||
// number of unchoke slots (as specified by
|
||||
// ``session::set_max_uploads()``).
|
||||
// ``settings_pack::unchoke_slots_limit``).
|
||||
//
|
||||
// * ``rate_based_choker`` opens up unchoke slots based on the upload
|
||||
// rate achieved to peers. The more slots that are opened, the
|
||||
|
|
|
@ -8997,11 +8997,13 @@ namespace libtorrent {
|
|||
if (is_paused() && !m_graceful_pause_mode)
|
||||
{
|
||||
// let the stats fade out to 0
|
||||
m_stat.second_tick(tick_interval_ms);
|
||||
// if the rate is 0, there's no update because of network transfers
|
||||
// check the rate before ticking the stats so that the last update is sent
|
||||
// with the rate equal to zero
|
||||
if (m_stat.low_pass_upload_rate() > 0 || m_stat.low_pass_download_rate() > 0)
|
||||
state_updated();
|
||||
else
|
||||
m_stat.second_tick(tick_interval_ms);
|
||||
// if the rate is 0, there's no update because of network transfers
|
||||
if (!(m_stat.low_pass_upload_rate() > 0 || m_stat.low_pass_download_rate() > 0))
|
||||
update_want_tick();
|
||||
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue