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

Commit 62f16bfc authored by JP Abgrall's avatar JP Abgrall Committed by Android (Google) Code Review
Browse files

jni: net.TrafficStats: fix getIfaceStat, have it use the iface.

Missing iface8 in call to parseIfaceStats().

Bug: 8304054
Change-Id: Ibb01d86a0f7241cdd8f23401973840673f847efb
parent d2bfa3bd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -166,7 +166,7 @@ static jlong getIfaceStat(JNIEnv* env, jclass clazz, jstring iface, jint type) {

    struct Stats stats;
    memset(&stats, 0, sizeof(Stats));
    if (parseIfaceStats(NULL, &stats) == 0) {
    if (parseIfaceStats(iface8.c_str(), &stats) == 0) {
        return getStatsType(&stats, (StatsType) type);
    } else {
        return UNKNOWN;