summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2017-01-15 15:57:40 +0100
committerDave Andreoli <dave@gurumeditation.it>2017-01-15 15:57:40 +0100
commitf14124583f1c7939fac822a7eca2e4f7a5a165b9 (patch)
treeab139137f09fe2b717a49ec5e12af0e367e83bf0
parentcd3490f35c5dd1efc9719895845cc01194de1ccd (diff)
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.
-rw-r--r--src/modules/sysinfo/netstatus/netstatus.c8
1 files 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)
37 msg->val[0] = inst->cfg->netstatus.incurrent; 37 msg->val[0] = inst->cfg->netstatus.incurrent;
38 msg->val[1] = inst->cfg->netstatus.inpercent; 38 msg->val[1] = inst->cfg->netstatus.inpercent;
39 msg->val[2] = inst->cfg->netstatus.inmax; 39 msg->val[2] = inst->cfg->netstatus.inmax;
40 msg->val[0] = inst->cfg->netstatus.outcurrent; 40 msg->val[3] = inst->cfg->netstatus.outcurrent;
41 msg->val[1] = inst->cfg->netstatus.outpercent; 41 msg->val[4] = inst->cfg->netstatus.outpercent;
42 msg->val[2] = inst->cfg->netstatus.outmax; 42 msg->val[5] = inst->cfg->netstatus.outmax;
43 edje_object_message_send(elm_layout_edje_get(inst->cfg->memusage.o_gadget), 43 edje_object_message_send(elm_layout_edje_get(inst->cfg->netstatus.o_gadget),
44 EDJE_MESSAGE_INT_SET, 1, msg); 44 EDJE_MESSAGE_INT_SET, 1, msg);
45 free(msg); 45 free(msg);
46} 46}