Commit Graph

94 Commits

Author SHA1 Message Date
Davide Andreoli 5153321f0c mem gadget: adjust a little bit the values calculation
Now the gadget show EXACTLY the same values of the free command on my machine,
but note: I found at least 3 different implementation of procpc so your values could be a bit different.
2017-01-30 21:23:23 +01:00
Stephen Houston aeda6dfac6 Enlightenment - Sysinfo Gadget - Size cpumonitor correctly wrt to bryce. 2017-01-29 22:49:31 -06:00
Davide Andreoli cb6fedc6cb mem gadget: fix a typo 2017-01-29 14:49:17 +01:00
Davide Andreoli 6eaefe37fc mem gadget: try to improve values calculation
It's hard to mimic "free" output parsing /proc/meminfo... we should really use sysinfo.h
directly (like free does).

btw, on my system now the values are really near the "free" output
2017-01-29 14:42:09 +01:00
Al Poole 55a7d4feed Fixes issues w/battery and batman living together
Summary:
The problems were that both sysctl implementations defined public accessable fields named bat.

The static definition moves into the file scopes.

The E_FREE calls are fixing a use after free.

Reviewers: zmike!, bu5hm4n

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D4629
2017-01-29 12:47:15 +01:00
Davide Andreoli abd60cca9a mem gadget: implemented a new info popup
It now show lots more usefull information.
The actual values still need to be adjusted, the goal is to show the exact same values of the "free" command
2017-01-29 10:35:19 +01:00
Marcel Hollerbach b0271f3a2b cpuclock: NULL status if its freed
This fixes a lot of valgrind warnings when using the editors.
2017-01-29 00:27:26 +01:00
Marcel Hollerbach 2dc5981034 gadgets: free that data when notify and main is done
otherwise one of the two callbacks will use possible freed memory.
2017-01-29 00:27:17 +01:00
Davide Andreoli adc5fa6c8b mem gadget: pass the new fetched info to the theme
in case a themer want to show more info inside the gadget
2017-01-28 20:49:05 +01:00
Davide Andreoli 921af28813 mem gadget cleanup: rename vars
no functional changes
2017-01-28 19:18:08 +01:00
Davide Andreoli d1cb369623 mem gadget: formatting, fit into 80 cols
no functional changes
2017-01-28 18:02:58 +01:00
Davide Andreoli 1c8ca780da mem gadget: improve proc info fetching
* collect more info than just 2 percentage
* improve performance by parsing proc only onece every loop
* use active memory to calc percentage, now the value is near the other mem tools I have
2017-01-28 17:52:56 +01:00
Al 'netstar' Poole 2f218a1694 Enlightenment - BSD - Fix typos in battery sysctl float compares. 2017-01-27 19:08:14 -06:00
Al 'netstar' Poole 82af16c32b Enlightenment - BSD - Cleanup sysctl code for batteries. 2017-01-27 18:28:19 -06:00
Stephen 'Okra' Houston d55164d0e0 Enlightenment - Sysinfo Gadget - Add some safety fallbacks for thermal - Fixes a dnd crash. 2017-01-27 18:16:32 -06:00
Stephen 'Okra' Houston d99e88b78c Enlightenment - Sysinfo Gadget - Size all sysinfo gadgets by aspect - should allow for proper theming. 2017-01-27 14:55:24 -06:00
Stephen 'Okra' Houston 1547ac080c Enlightenment: Sysinfo Gadget - Base size on edje extends calcs. 2017-01-27 13:49:04 -06:00
Stephen 'Okra' Houston c06e36fa2a Enlightenment: Sysinfo Gadget - Show real time data in popups and fix sizing of memusage and cpumonitor. 2017-01-26 14:06:56 -06:00
Stephen 'Okra' Houston f1b0cfcdea Enlightenment - Sysinfo Netstatus Gadget - Use proper data passed to callback to avoid crash. 2017-01-26 09:09:48 -06:00
Stephen 'Okra' Houston 6ebb68777c Enlightenment - Sysinfo Gadget - Allow configuring of max speeds for netstatus gadget. 2017-01-19 14:18:36 -06:00
Stephen 'Okra' Houston 638d5d502f Enlightenment: - Sysinfo gadget - Calculate net percentages correctly. 2017-01-15 13:34:04 -06:00
Davide Andreoli 0caaf5fabe net gadget: those signals are not used/needed anymore
all the needed values are already pased in the theme using an edje message
2017-01-15 16:08:03 +01:00
Davide Andreoli f14124583f 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.
2017-01-15 15:57:40 +01:00
Stephen 'Okra' Houston de6ff6f48f Enlightenment: Sysinfo gadget - Calculate netstatus max automatically and send percentages to the theme. 2017-01-12 14:17:55 -06:00
Stephen 'Okra' Houston 62f7d684dd Enlightenment: Sysinfo Gadget - Properly mark popup as deleted. 2017-01-11 22:06:38 -06:00
Stephen 'Okra' Houston 58a9333580 Enlightenment: Sysinfo Gadget - Add an informative popup, as well as a config panel to memusage, cpumonitor, and netstatus.
Left click will give you some informative detail and right click will show the config panel with t he option to configure how often to poll.
2017-01-11 21:21:34 -06:00
Stephen 'Okra' Houston 2f75513396 Enlightenment: Sysinfo gadgets - Remove temporary gadgets correctly. 2017-01-11 09:27:43 -06:00
Davide Andreoli 409230ee35 cpu + mem gadget: use new vertical layouts 2017-01-09 21:01:54 +01:00
Stephen 'Okra' Houston d843f58671 Enlightenment: Fix coverity issues related to new sysinfo gadget
This fixes CID1368352 CID1368351 CID1368350 CID1368349 CID1368348 CID1368347 CID1368346 CID1368344 CID1368343
2017-01-09 09:43:02 -06:00
Stephen 'Okra' Houston 3d1feb31cc Enlightenment: Sysinfo gadget: Free up the edje message correctly. 2017-01-08 17:32:07 -06:00
Stephen 'Okra' Houston 9d6af51de2 Enlightenment: Sysinfo gadget. Free edje messages. 2017-01-08 17:28:54 -06:00
Stephen 'Okra' Houston 74e773ab61 Enlightenment: Improve cpumonitor calculation 2017-01-08 14:44:13 -06:00
Stephen 'Okra' Houston 3fb8149486 Enlightenment: Sysinfo gadget: Calculate aspects correctly. 2017-01-08 14:26:11 -06:00
Stephen 'Okra' Houston a8f5529d25 Enlightenment: Fix cpumonitor gadget core usage calc 2017-01-08 13:56:12 -06:00
Davide Andreoli b7e2454914 cpu gadget: fetch aspect ratio from the theme
as per the mem module I really don't like this implementation :/
2017-01-08 20:50:48 +01:00
Davide Andreoli 0978fa9eb6 cpu gadget: fix orientation of the box
still need to fix the aspect ratio
2017-01-08 20:33:29 +01:00
Stephen 'Okra' Houston ea9dbba34d Enlightenment: Fix cpumonitor gadget to do per core. 2017-01-08 12:10:13 -06:00
Davide Andreoli 4c2116ac0f mem gadget: no need to send 2 consecutive int_set msgs
One msg with 2 ints is more efficient
2017-01-08 19:05:33 +01:00
Davide Andreoli 30c81ac188 mem gadget: respect the aspect ratio of the theme
I really don't like this implementation (taken from the clock gadget).
If you know a better way to get the aspect from an elm layout please let me know
2017-01-08 18:00:00 +01:00
Stephen 'Okra' Houston 0b1fc0e368 Batman: Allow multiple instances of batman to work correctly. 2017-01-07 17:39:48 -06:00
Stephen 'Okra' Houston 9189293b46 Enlightenment: Fix double compare in batman and fix compilation on bsd. 2017-01-07 04:49:57 -06:00
Stephen 'Okra' Houston b24ab5c06d Enlightenment: Add a scroller to the sysinfo gadget. 2017-01-06 17:31:47 -06:00
Stephen 'Okra' Houston b51b591171 Enlightenment: Sysinfo gadget supporting files 2017-01-06 16:16:51 -06:00
Stephen 'Okra' Houston cd24662e9f Enlightenment: Add the sysinfo gadget that includes battery, temp, frequency, cpu, mem, and net
This is a gadget using the new api that has separate gadgets for battery, temperature, net status, cpu load, mem usage, cpu frequency, and one gadget called sysinfo that combines all of the above.
2017-01-06 16:16:51 -06:00