Commit Graph

1253 Commits

Author SHA1 Message Date
Alessio Sergi
56e35e4b04 glances.conf: update 2014-12-16 17:34:00 +01:00
Alessio Sergi
e65769537d Improve Python 3 compatibility 2014-12-16 17:00:44 +01:00
Nicolas Hennion
dab4781eac Update NEWS and add Scrutinizer badge 2014-12-16 15:04:05 +01:00
Alessio Sergi
64b733396c Fix cyclic import (again)
glances_globals <-> glances_logging
2014-12-16 12:49:16 +01:00
Alessio Sergi
e54c3a7d48 Fix cyclic import
glances_globals -> glances_logs -> glances_processes -> glances_globals
2014-12-16 12:00:00 +01:00
Nicolas Hennion
e8e49abd9d Merge pull request #457 from desbma/develop
Fix incorrect kernel thread detection with --hide-kernel-threads
2014-12-15 17:30:32 +01:00
Jean-Christophe
4f7773e3a8 Handle IOError exception if no /etc/os-release
On Synology DSM OS (Linux base), python throws an IOError when open does not find a file.
Previously only OSError was handled, now it handles both the OSError and IOError.
2014-12-15 16:30:49 +01:00
desbma
9a00800b22 Fix incorrect kernel thread detection 2014-12-15 00:46:09 +01:00
Nicolargo
d17def69b4 On the road on the 2.3 release 2014-12-13 22:56:46 +01:00
Nicolargo
e8417b7c76 Correct merge issue with master 2014-12-13 22:43:18 +01:00
Nicolargo
f5747a5b00 Change version to 2.2 2014-12-13 22:32:53 +01:00
Nicolargo
29780f83e7 Update docs for 2.2 release 2014-12-13 22:17:05 +01:00
Alessio Sergi
9f020ab1cb glances_cpu.py: simplify 2014-12-13 19:50:50 +01:00
Alessio Sergi
88115d712b glances_percpu.py: use psutil's cpu_percent and cpu_times_percent methods
Rely on both methods to get per-CPU stats as a percentage.
Replace the 'homemade' one.
2014-12-13 19:12:52 +01:00
Nicolargo
f907069c8c Correct error in README.rst using the rst-lint script 2014-12-13 09:45:03 +01:00
Alessio Sergi
bb518bebde Merge branch 'desbma-develop' into develop 2014-12-12 09:49:43 +01:00
desbma
58ad1e7dff Use operator.itemgetter instead of lambda when possible 2014-12-12 09:49:20 +01:00
desbma
7cf0a31997 Don't construct empty lists in tests 2014-12-12 09:49:20 +01:00
desbma
59fc36e334 Remove code duplication 2014-12-12 09:49:20 +01:00
desbma
1ba459e696 Sort lists in place when possible 2014-12-12 09:49:13 +01:00
Alessio Sergi
a6b2f7f63c glances_fs.py: simplify for loop iteration 2014-12-11 10:28:00 +01:00
Alessio Sergi
1c4da44eb9 Merge branch 'desbma-develop' into develop 2014-12-10 17:16:32 +01:00
desbma
901866a306 Fix issue when sorting by time with '--tree' option
When sorting by 'cpu_times', stats are returned as a pcputimes namedtuple,
with user and system CPU time, so they must be summed before numerical
comparison.

Close #453.
2014-12-10 17:12:17 +01:00
Alessio Sergi
af67cfcf83 Linux: add os-release support
Python's platform.linux_distribution() returns an empty tuple if a Linux
distribution is not part of the '_supported_dists' list.

Add a method to parse the os-release file, the new standard release file,
which replaces the multitude of per-distribution ones.

Also, platform.linux_distribution() is being deprecated and then removed
in future Python releases.
2014-12-08 18:00:00 +01:00
Alessio Sergi
c4b7efb2e9 Fix a crash in autodiscover mode when netifaces is not installed 2014-12-06 20:00:00 +01:00
Alessio Sergi
c9266ebf62 Prevent an issue when zeroconf is not updated while Glances is 2014-12-06 17:49:48 +01:00
Nicolargo
db6a4ff56c Merge branch 'develop' of github.com:nicolargo/glances into develop 2014-12-06 10:35:00 +01:00
Nicolargo
cd88420552 Add Pylint configuration file 2014-12-06 10:34:48 +01:00
Alessio Sergi
baa8ef1fd7 Misc tweaks
- fix help screen
- whitespace before ‘:’
- missing whitespace around operator
- function name should be lowercase
- class names should use CapWords convention
- fix various misspelling
2014-12-05 10:41:49 +01:00
Alessio Sergi
5da624c202 Remove i18n from log messages 2014-12-04 17:04:50 +01:00
Alessio Sergi
d398cf0f1f Remove unused and duplicate import statements
Clean up import order.
2014-12-04 13:04:49 +01:00
Alessio Sergi
5b78805b68 Fix blind except statements 2014-12-04 12:27:27 +01:00
Alessio Sergi
ed0ef18456 setup.py: zeroconf and netifaces are optional dependencies
Move them to extras_require.
2014-12-04 10:49:49 +01:00
Nicolargo
dafcc65d5c Log if Zeroconf < 0.16 is detected 2014-12-03 23:16:34 +01:00
Nicolargo
03743421f0 Change the function to get the IPv4 active address to use in the autodiscover mode (issue #452) 2014-12-03 22:51:14 +01:00
Nicolargo
b743d6ace0 Zeroconf API change - Need Zeroconf 0.16 or higher 2014-12-03 19:04:04 +01:00
Alessio Sergi
ca467765fc core/glances_client_browser.py: ensure rounding to 2 decimal places for load stat
Close #450.
2014-12-03 12:00:00 +01:00
Nicolargo
43027f4a39 Upgrade status in the browser list 2014-12-02 22:40:59 +01:00
Nicolargo
84e4d77a21 Merge branch 'develop' of github.com:nicolargo/glances into develop 2014-12-02 19:18:17 +01:00
Nicolargo
c0a98cc7d2 Correct browser mode issue and alias name 2014-12-02 19:17:43 +01:00
Alessio Sergi
3367981d11 core/glances_client_browser.py: fix cpu stat visualization under python3 2014-11-29 20:04:48 +01:00
Alessio Sergi
2dc3de8956 outputs/glances_curses.py: fix browser mode with python3 2014-11-29 18:48:48 +01:00
Nicolargo
2de175c9f2 Process sort bu CPU times (TIME+) with the t key 2014-11-29 17:31:20 +01:00
Nicolargo
3ae2a0ce98 Add Slackware packager 2014-11-29 14:12:25 +01:00
Nicolargo
b245136d8d Add patch for pip user install (thk to @asergi) (correct issue #383) 2014-11-29 11:15:08 +01:00
Nicolargo
1bc15ad7c0 Merge branch 'feature/issue418' into develop 2014-11-29 10:18:28 +01:00
Nicolargo
7c78b4db53 Update documentation 2014-11-29 10:17:39 +01:00
Nicolargo
0463d0df3b Finalise the feature 2014-11-29 09:41:47 +01:00
Nicolargo
5ca213335a Patch from Philip Lacroix 2014-11-29 09:24:32 +01:00
Nicolargo
ae8cdefca3 Check socket error if no network interface available 2014-11-29 09:21:40 +01:00