fix for div/0
[qtrapids] / src / include / qtrapids / info.hpp
index 6265155..f944677 100644 (file)
@@ -9,7 +9,9 @@
 namespace qtrapids
 {
 
-    static const uint32_t torrent_progress_max = std::numeric_limits<uint32_t>::max();
+    static const uint32_t torrent_progress_max = 1000000;
+    static const uint32_t torrent_progress_percent = 10000;
+    //std::numeric_limits<uint32_t>::max();
 
     typedef libtorrent::torrent_status TorrentStatus_t;
     typedef libtorrent::torrent_status::state_t TorrentStatusIds_t;