Commit Graph

2607 Commits

Author SHA1 Message Date
nicolargo
01ff8aa7d5 Force float on GPU memory 2016-12-26 09:39:42 +01:00
nicolargo
184e444dc4 Update PsUtil version 2016-12-24 17:31:47 +01:00
nicolargo
525db5a5e8 Merge branch 'develop' of https://github.com/nicolargo/glances into develop 2016-12-24 17:00:58 +01:00
nicolargo
c5c961c1a0 Replace try by in 2016-12-24 17:00:52 +01:00
Alessio Sergi
d9aaa0147d Remove unreachable code 2016-12-22 16:00:00 +01:00
Alessio Sergi
9f36d12693 Replace assignment with augmented assignment 2016-12-22 15:58:01 +01:00
Alessio Sergi
6fb03571f1 Use triple double-quote string format for docstrings 2016-12-22 15:44:18 +01:00
Alessio Sergi
e8ccb64437 Some minor fixes and misspelling 2016-12-22 12:00:44 +01:00
Alessio Sergi
904e0f1f32 actions: change log message from warning to debug 2016-12-21 17:53:36 +01:00
Alessio Sergi
a9ebe31cdf logging: fix redefinition of ret type from str to tuple
While I'm here, fix 'Imports from package logging are not grouped'.
2016-12-21 17:35:50 +01:00
Alessio Sergi
f02a266ca9 Always use nvmlDeviceGetMemoryInfo() to get NVIDIA GPU memory usage
nvmlDeviceGetUtilizationRates(handle).memory is not always reliable and
plus seems not supported by all NVIDIA cards.
2016-12-21 13:37:13 +01:00
Alessio Sergi
7310b32605 Handle nvmlDeviceGetUtilizationRates(handle).gpu error in the UI too 2016-12-21 13:16:05 +01:00
Alessio Sergi
a08f848b1a Fix redefinition of t type from threading.Thread to glances.timer.Timer 2016-12-21 11:21:21 +01:00
Alessio Sergi
c93ee098d1 Fix redefinition of ret type from str to tuple 2016-12-21 11:16:29 +01:00
Alessio Sergi
3d9dce7ec2 Fix another bare except statement (forgot in the previous commit) 2016-12-20 13:35:53 +01:00
Alessio Sergi
34434c5f44 Fix some bare except statements 2016-12-20 13:31:17 +01:00
Alessio Sergi
7f902d3f5b Remove duplicate key 'c' in dictionary 2016-12-20 13:00:54 +01:00
Alessio Sergi
cd77205cf9 Remove superfluous parenthesis 2016-12-20 13:00:15 +01:00
Alessio Sergi
002510f19c Remove unused variable 'd' 2016-12-20 12:58:50 +01:00
Alessio Sergi
74fa804e94 Fix wrong continued indentation 2016-12-20 12:55:49 +01:00
Alessio Sergi
bb01387e86 Cleanup imports
- Fix wrong import order
- Remove unused imports
2016-12-20 12:46:31 +01:00
Alessio Sergi
1435f6ce0c Fix bad format string 2016-12-20 11:23:20 +01:00
Alessio Sergi
c2cb4b8a7f setup.py: use 'with' context manager to open files 2016-12-19 19:50:02 +01:00
Alessio Sergi
0fe2b71a35 GPU plugin: dos -> unix line endings (3rd) 2016-12-19 17:23:10 +01:00
Nicolargo
67d9b96d86 Corect issue when displaying multiple GPU 2016-12-19 11:44:33 +01:00
Nicolargo
0a152be93a Corect issue when displaying multiple GPU 2016-12-19 11:41:33 +01:00
Alessio Sergi
7e065e6ce7 Remove old warning about Python 2.6 deprecation 2016-12-19 00:02:40 +01:00
Alessio Sergi
da26c9539d GPU plugin: dos -> unix line endings (again) 2016-12-18 23:38:07 +01:00
Kirby Banman
b80a7515f1 Fix typo in string formatting for gpu mem stats in curses (#983) 2016-12-18 23:36:03 +01:00
nicolargo
ff14d3349c Resolve merge issue 2016-12-18 20:16:48 +01:00
nicolargo
6b82c627c3 Merge branch 'issue170' into develop 2016-12-18 20:14:18 +01:00
nicolargo
37d7e942f1 First version of the Curses interface for the new GPU plugin 2016-12-18 20:14:08 +01:00
Alessio Sergi
f909170fd9 GPU plugin: dos -> unix line endings 2016-12-18 19:06:50 +01:00
Alessio Sergi
deaa17a74f Use str.format() automatic numbering
We don't support Python 2.6 any longer.
2016-12-18 18:52:47 +01:00
nicolargo
781dfeef0c Add the key to the GPU plugin 2016-12-18 11:09:19 +01:00
Nicolas Hennion
0182fafdb0 Merge pull request #982 from kdbanman/feature/gpu-nvidia
Fix incorrectly registered GPU id in gpu plugin
2016-12-18 11:05:30 +01:00
Kirby Banman
0ac7d86ea7 Fix incorrectly registered GPU id in gpu plugin 2016-12-17 23:38:06 -07:00
nicolargo
1e36444f18 Correct an issue in PR issue #979 (for #issue #170) because the get_stats method overwrite the default get_method. Rename it to get_device_stats 2016-12-17 10:35:09 +01:00
nicolargo
c28a00ffb4 Merge branch 'issue170' into develop 2016-12-17 09:53:30 +01:00
nicolargo
ec27ef53d4 Correct unitary tests issues. Add some PEP8 tips. 2016-12-17 09:53:06 +01:00
Kirby Banman
bdd4735d00 Move gpu plugin to better named file 2016-12-15 22:48:37 -07:00
Kirby Banman
8b3395144f Declare nvidia as optional requirement 2016-12-15 22:47:57 -07:00
Kirby Banman
dc592a2cd0 Merge branch 'develop' of https://github.com/nicolargo/glances into feature/gpu-nvidia 2016-12-15 22:46:03 -07:00
nicolargo
6a186fd4c2 Replace homemade timer by sched Python lib for the standalone mode 2016-12-04 10:32:26 +01:00
nicolargo
9affd4d541 PEP8 correction 2016-12-04 09:46:07 +01:00
nicolargo
80d9d05ba5 Update processlist doc 2016-12-03 18:07:24 +01:00
nicolargo
40a2331a81 Merge branch 'issue836' into develop 2016-12-03 15:30:59 +01:00
nicolargo
1f01e1dbf4 Add access to the config file from the RestFul API: http://0.0.0.0:61208/api/2/config 2016-12-03 14:59:47 +01:00
Kirby Banman
df3e80875b Implement basic nvidia stats in plugin 2016-11-27 14:28:19 -07:00
nicolargo
258dbbf94f Refactor Curses display method 2016-11-27 22:14:20 +01:00