davemds pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=f14124583f1c7939fac822a7eca2e4f7a5a165b9

commit f14124583f1c7939fac822a7eca2e4f7a5a165b9
Author: Dave Andreoli <d...@gurumeditation.it>
Date:   Sun Jan 15 15:57:40 2017 +0100

    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 0bffc37..277d2f2 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);
 }

-- 


Reply via email to