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

Commit 1be2b682 authored by JP Abgrall's avatar JP Abgrall Committed by Android Git Automerger
Browse files

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

* commit '62f16bfc':
  jni: net.TrafficStats: fix getIfaceStat, have it use the iface.
parents 39aad005 62f16bfc
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;