From d30ae3dda81f26cdd61dca7cac6b9a85ea9d6f07 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 29 Nov 2014 08:17:25 +0000 Subject: [PATCH] fix stats_alert stats indices --- src/alert.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/alert.cpp b/src/alert.cpp index 525920ccb..50958f40c 100644 --- a/src/alert.cpp +++ b/src/alert.cpp @@ -393,12 +393,12 @@ namespace libtorrent { : torrent_alert(h) , interval(in) { - transferred[upload_payload] = s[upload_payload].counter(); - transferred[upload_protocol] = s[upload_protocol].counter(); - transferred[download_payload] = s[download_payload].counter(); - transferred[download_protocol] = s[download_protocol].counter(); - transferred[upload_ip_protocol] = s[upload_ip_protocol].counter(); - transferred[download_ip_protocol] = s[download_ip_protocol].counter(); + transferred[upload_payload] = s[stat::upload_payload].counter(); + transferred[upload_protocol] = s[stat::upload_protocol].counter(); + transferred[download_payload] = s[stat::download_payload].counter(); + transferred[download_protocol] = s[stat::download_protocol].counter(); + transferred[upload_ip_protocol] = s[stat::upload_ip_protocol].counter(); + transferred[download_ip_protocol] = s[stat::download_ip_protocol].counter(); #ifndef TORRENT_NO_DEPRECATE transferred[upload_dht_protocol] = 0;