Skip to content

Feature/cumulative traffic stats#258

Open
ayushsingh658 wants to merge 2 commits intoRetroShare:masterfrom
ayushsingh658:feature/cumulative-traffic-stats
Open

Feature/cumulative traffic stats#258
ayushsingh658 wants to merge 2 commits intoRetroShare:masterfrom
ayushsingh658:feature/cumulative-traffic-stats

Conversation

@ayushsingh658
Copy link

Add Cumulative Traffic Statistics Tracking

This PR adds backend support for cumulative data transfer statistics.

Changes

  • Added RsCumulativeTrafficStats struct with bytes in/out, count in/out, first/last seen timestamps
  • Added methods: getCumulativeTrafficByPeer(), getCumulativeTrafficByService(), getTotalCumulativeTraffic(), clearCumulativeTraffic()
  • Accumulates traffic data from rsBandwidthControl->ExtractTrafficInfo()

Related

Testing

  • Builds successfully on Windows (5-param constructor matches rsinit.cc)

@defnax
Copy link
Contributor

defnax commented Feb 1, 2026

can you update libretroshare to the latest? you use outdated libretroshare

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants