diff --git a/NEWS b/NEWS index a1b276ba..0d9bffee 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,26 @@ Glances Version 2.x ============================================================================== +Version 2.1 +=========== + + * History feature (--enable-history option on the command line) + This feature allows users to generate graphs within the curse interface. + Graphs are available for CPU, LOAD and MEM. + To generate graph, click on the 'g' key. + To reset the history, press the 'r' key. + * Alias for network interfaces, disks and sensors + Users can configure alias from the Glances configuration file. + * Add Glances log message (in the /tmp/glances.log file) + The default log level is INFO, you can switch to the debug mode using the -d option on the command line. + * Add RESTFul API to the web server mode + * Improve SNMP fallback mode for Cisco IOS, VMware ESXi + * Travis coverage + +Bugs corrected: + + * ... + Version 2.0.1 ============= diff --git a/glances/outputs/glances_curses.py b/glances/outputs/glances_curses.py index 9beb9393..5fb73217 100644 --- a/glances/outputs/glances_curses.py +++ b/glances/outputs/glances_curses.py @@ -471,8 +471,8 @@ class GlancesCurses(object): if size_x > screen_x or size_y > screen_y: # No size to display the popup => abord return False - pos_x = (screen_x - size_x) / 2 - pos_y = (screen_y - size_y) / 2 + pos_x = int((screen_x - size_x) / 2) + pos_y = int((screen_y - size_y) / 2) # Create the popup popup = curses.newwin(size_y, size_x, pos_y, pos_x)