Add release notes and correct issue on popup display

This commit is contained in:
Nicolargo 2014-08-02 15:20:15 +02:00
parent 3f16f409aa
commit 75d340cb72
2 changed files with 22 additions and 2 deletions

20
NEWS
View File

@ -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
=============

View File

@ -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)