mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-25 10:12:55 +03:00
Add release notes and correct issue on popup display
This commit is contained in:
parent
3f16f409aa
commit
75d340cb72
20
NEWS
20
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
|
||||
=============
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user