diff --git a/include/libtorrent/performance_counters.hpp b/include/libtorrent/performance_counters.hpp index 346550596..31968cdbe 100644 --- a/include/libtorrent/performance_counters.hpp +++ b/include/libtorrent/performance_counters.hpp @@ -307,13 +307,13 @@ namespace libtorrent socket_recv_size19, socket_recv_size20, - num_stats_counters - }; + num_stats_counters, + + // == ALL FOLLOWING ARE GAUGES == + + // it is important that all gauges have a higher index than counters. + // This assumption is relied upon in other parts of the code - // it is important that all gauges have a higher index than counters. - // This assumption is relied upon in other parts of the code - enum stats_gauges_t - { num_checking_torrents = num_stats_counters, num_stopped_torrents, // upload_only means finished