Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1326d6cf authored by Lorenzo Colitti's avatar Lorenzo Colitti Committed by android-build-merger
Browse files

Merge "Synchronize the NetworkStatsFactory constructor." am: f2bd2bbf

am: e6193f40

Change-Id: I521cd368a611bedaf9e6e5af4b8d71c040b502ac
parents c2341be2 e6193f40
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -179,9 +179,11 @@ public class NetworkStatsFactory {
        mStatsXtIfaceFmt = new File(procRoot, "net/xt_qtaguid/iface_stat_fmt");
        mStatsXtUid = new File(procRoot, "net/xt_qtaguid/stats");
        mUseBpfStats = useBpfStats;
        synchronized (sPersistentDataLock) {
            mPersistSnapshot = new NetworkStats(SystemClock.elapsedRealtime(), -1);
            mTunAnd464xlatAdjustedStats = new NetworkStats(SystemClock.elapsedRealtime(), -1);
        }
    }

    public NetworkStats readBpfNetworkStatsDev() throws IOException {
        final NetworkStats stats = new NetworkStats(SystemClock.elapsedRealtime(), 6);