From 94476932025ff0cf6d0d2031d0394b14bd6e8d00 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 23 Jun 2008 18:31:52 +0000 Subject: [PATCH] storage fastresume fix --- src/storage.cpp | 3 +++ src/torrent.cpp | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/storage.cpp b/src/storage.cpp index 14eaf87af..af71fcfaf 100755 --- a/src/storage.cpp +++ b/src/storage.cpp @@ -1445,6 +1445,9 @@ namespace libtorrent slots.push_back((*i >= 0) ? *i : unassigned); } } + + rd["allocation"] = m_storage_mode == storage_mode_sparse?"sparse" + :m_storage_mode == storage_mode_allocate?"full":"compact"; } void piece_manager::mark_failed(int piece_index) diff --git a/src/torrent.cpp b/src/torrent.cpp index d8a6d8022..bf78df35a 100755 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -2461,9 +2461,6 @@ namespace libtorrent ret["num_seeds"] = seeds; ret["num_downloaders"] = downloaders; - ret["allocation"] = m_storage_mode == storage_mode_sparse?"sparse" - :m_storage_mode == storage_mode_allocate?"full":"compact"; - const sha1_hash& info_hash = torrent_file().info_hash(); ret["info-hash"] = std::string((char*)info_hash.begin(), (char*)info_hash.end());