mirror of
https://github.com/emanuele-f/PCAPdroid.git
synced 2026-06-19 21:05:25 +08:00
Restore old fragment stats calculation after last commit
This ensures that the stats value is in sync with the stats parameter
This commit is contained in:
parent
4018db9953
commit
591cce0137
@ -219,7 +219,7 @@ public class StatusFragment extends Fragment implements AppStateListener, MenuPr
|
||||
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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user