Skip to content

Commit

Permalink
Restore old fragment stats calculation after last commit
Browse files Browse the repository at this point in the history
This ensures that the stats value is in sync with the stats parameter
  • Loading branch information
emanuele-f committed Mar 11, 2024
1 parent 4018db9 commit 591cce0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ private void refreshFilterInfo() {
private void onStatsUpdate(CaptureStats stats) {
Log.d("MainReceiver", "Got StatsUpdate: bytes_sent=" + stats.pkts_sent + ", bytes_rcvd=" +
stats.bytes_rcvd + ", pkts_sent=" + stats.pkts_sent + ", pkts_rcvd=" + stats.pkts_rcvd);
mCaptureStatus.setText(Utils.formatBytes(CaptureService.getBytes()));
mCaptureStatus.setText(Utils.formatBytes(stats.bytes_sent + stats.bytes_rcvd));
}

private Pair<String, Drawable> getAppFilterTextAndIcon(@NonNull Context context) {
Expand Down

0 comments on commit 591cce0

Please sign in to comment.