From f14124583f1c7939fac822a7eca2e4f7a5a165b9 Mon Sep 17 00:00:00 2001 From: Dave Andreoli Date: Sun, 15 Jan 2017 15:57:40 +0100 Subject: [PATCH] net gadget: fix 2 obvious cnp errors note that the max/percent calculation are still wrong. Seems the first cur calc give a huge value, that go into max and prevent any other perc calc to be correct. --- src/modules/sysinfo/netstatus/netstatus.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/sysinfo/netstatus/netstatus.c b/src/modules/sysinfo/netstatus/netstatus.c index 0bffc37f5..277d2f221 100644 --- a/src/modules/sysinfo/netstatus/netstatus.c +++ b/src/modules/sysinfo/netstatus/netstatus.c @@ -37,10 +37,10 @@ _netstatus_face_update(Instance *inst) msg->val[0] = inst->cfg->netstatus.incurrent; msg->val[1] = inst->cfg->netstatus.inpercent; msg->val[2] = inst->cfg->netstatus.inmax; - msg->val[0] = inst->cfg->netstatus.outcurrent; - msg->val[1] = inst->cfg->netstatus.outpercent; - msg->val[2] = inst->cfg->netstatus.outmax; - edje_object_message_send(elm_layout_edje_get(inst->cfg->memusage.o_gadget), + msg->val[3] = inst->cfg->netstatus.outcurrent; + msg->val[4] = inst->cfg->netstatus.outpercent; + msg->val[5] = inst->cfg->netstatus.outmax; + edje_object_message_send(elm_layout_edje_get(inst->cfg->netstatus.o_gadget), EDJE_MESSAGE_INT_SET, 1, msg); free(msg); }