NEWS 19.2 KB
Newer Older
N
Nicolargo 已提交
1 2 3 4
==============================================================================
Glances Version 2.x
==============================================================================

N
Nicolargo 已提交
5 6 7
Version 2.4
===========

8 9 10 11
Changes:

    * Glances doesn't provide a system-wide configuration file by default anymore.
      Just copy it in any of the supported locations. See glances-doc.html for
N
Nicolargo 已提交
12
      more information. (issue #541)
A
Alessio Sergi 已提交
13 14 15
    * The default key bindings have been changed to:
      - 'u': sort processes by USER
      - 'U': show cumulative network I/O
A
Alessio Sergi 已提交
16
    * No more translations
17

A
Alessio Sergi 已提交
18
Enhancements and new features:
19

N
Nicolargo 已提交
20
    * The Web user interface is now based on AngularJS (issue #473, #508, #468)
N
nicolargo 已提交
21
    * Implement a 'quick look' plugin (issue #505)
A
Alessio Sergi 已提交
22
    * Add sort processes by USER (issue #531)
N
nicolargo 已提交
23 24 25
    * Add a new IP information plugin (issue #509)
    * Add RabbitMQ export module (issue #540 Thk to @Katyucha)
    * Add a quiet mode (-q), can be useful using with export module
26 27
    * Grab FAN speed in the Glances sensors plugin (issue #501)
    * Allow logical mounts points in the FS plugin (issue #448)
28
    * Add a --disable-hddtemp to disable HDD temperature module at startup (issue #515)
N
nicolargo 已提交
29 30
    * Increase alert minimal delay to 6 seconds (issue #522) 
    * If the Curses application raises an exception, restore the terminal correctly (issue #537)
31 32 33

Bugs corrected:

N
nicolargo 已提交
34 35 36 37
    * Monitor list, all processes are take into account (issue #507)
    * Duplicated --enable-history in the doc (issue #511)
    * Sensors title is displayed if no sensors are detected (issue #510)
    * Server mode issue when no network interface is available (issue #528)
N
Nicolargo 已提交
38 39
    * DEBUG mode activated by default with Python 2.6 (issue #512)
    * Glances display of time trims the hours showing only minutes and seconds (issue #543)
N
Nicolargo 已提交
40

41
Version 2.3
N
Nicolargo 已提交
42 43
===========

A
Alessio Sergi 已提交
44
Enhancements and new features:
45

N
Nicolargo 已提交
46 47 48
    * Add the Docker plugin (issue #440) with per container CPU and memory monitoring (issue #490) 
    * Add the RAID plugin (issue #447)
    * Add actions on alerts (issue #132). It is now possible to run action (command line) by triggers. Action could contain {{tag}} (Mustache) with stat value.
N
Nicolargo 已提交
49
    * Add InfluxDB export module (--export-influxdb) (issue #455)
N
Nicolargo 已提交
50
    * Add StatsD export module (--export-statsd) (issue #465)
51
    * Refactor export module (CSV export option is now --export-csv). It is now possible to export stats from the Glances client mode (issue #463)
N
nclsHart 已提交
52
    * The Web inteface is now based on Bootstrap / RWD grid (issue #417, #366 and #461) Thanks to Nicolas Hart @nclsHart
N
Nicolargo 已提交
53
    * It is now possible, through the configuration file, to define if an alarm should be logged or not (using the _log option) (issue #437)
N
Nicolargo 已提交
54
    * You can now set alarm for Disk IO
N
Nicolargo 已提交
55 56
    * API: add getAllLimits and getAllViews methods (issue #481) and allow CORS request (issue #479)
    * SNMP client support NetApp appliance (issue #394)
57

58 59 60 61
Bugs corrected:

    *  R/W error with the glances.log file (issue #474) 

62 63 64 65
Other enhancement:
    
    * Alert < 3 seconds are no longer displayed

66 67 68
Version 2.2.1
=============

69 70
    * Fix incorrect kernel thread detection with --hide-kernel-threads (issue #457)
    * Handle IOError exception if no /etc/os-release to use Glances on Synology DSM (issue #458)
71
    * Check issue error in client/server mode (issue #459) 
N
Nicolargo 已提交
72

N
Nicolas Hennion 已提交
73 74 75
Version 2.2
===========

A
Alessio Sergi 已提交
76
Enhancements and new features:
N
Nicolargo 已提交
77 78 79 80

    * Add centralized curse interface with a Glances servers list to monitor (issue #418)
    * Add processes tree view (--tree) (issue #444)
    * Improve graph history feature (issue #69)
81
    * Extended stats is disable by default (use --enable-process-extended to enable it - issue #430)
N
Nicolargo 已提交
82 83
    * Add a short key ('F') and a command line option (--fs-free-space) to display FS free space instead of used space (issue #411)
    * Add a short key ('2') and a command line option (--disable-left-sidebar) to disable/enable the side bar (issue #429)
84
    * Add CPU times sort short key ('t') in the curse interface (issue #449)
N
Nicolargo 已提交
85 86
    * Refactor operating system detection for GNU/Linux operating system
    * Code optimization
N
Nicolargo 已提交
87 88 89

Bugs corrected:

90
    * Correct a bug with Glances pip install --user (issue #383)
N
Nicolargo 已提交
91 92
    * Correct issue on battery stat update (issue #433)
    * Correct issue on process no longer exist (issues #414 and #432)
N
Nicolas Hennion 已提交
93

N
Nicolargo 已提交
94 95 96 97 98 99 100 101 102
Version 2.1.2
=============

    Maintenance version (only needed for Mac OS X).

Bugs corrected:

    * Mac OS X: Error if Glances is not ran with sudo (issue #426)

N
Nicolargo 已提交
103 104 105 106
Version 2.1.1
=============

Enhancement:
N
Nicolargo 已提交
107

N
Nicolargo 已提交
108 109 110 111 112 113 114 115 116 117 118
    * Automaticaly compute top processes number for the current screen (issue #408)
    * CPU and Memory footprint optimization (issue #401)

Bugs corrected:

    * Mac OS X 10.9: Exception at start (issue #423)
    * Process no longer exists (issue #421)
    * Error with Glances Client with Python 3.4.1 (issue #419)
    * TypeError: memory_maps() takes exactly 2 arguments (issue #413)
    * No filesystem informations since Glances 2.0 bug enhancement (issue #381)

119 120 121
Version 2.1
===========

N
Nicolargo 已提交
122 123 124 125
    * Add user process filter feature
      User can define a process filter pattern (as a regular expression).
      The pattern could be defined from the command line (-f <pattern>)
      or by pressing the ENTER key in the curse interface.
N
Nicolargo 已提交
126
      For the moment, process filter feature is only available in standalone mode.
N
Nicolargo 已提交
127
    * Add extended processes informations for top process
128
      Top process stats availables: CPU affinity, extended memory information (shared, text, lib, datat, dirty, swap), open threads/files and TCP/UDP network sessions, IO nice level 
N
Nicolargo 已提交
129
      For the moment, extended processes stats are only available in standalone mode.
130
    * Add --process-short-name tag and '/' key to switch between short/command line
N
Nicolargo 已提交
131 132 133 134 135 136
    * Create a max_processes key in the configuration file
      The goal is to reduce the number of displayed processes in the curses UI and 
      so limit the CPU footprint of the Glances standalone mode.
      The API always return all the processes, the key is only active in the curses UI.
      If the key is not define, all the processes will be displayed.
      The default value is 20 (processes displayed).
N
Nicolargo 已提交
137
      For the moment, this feature is only available in standalone mode.
138 139 140
    * 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)
N
Nicolargo 已提交
141
      The default log level is INFO, you can switch to the DEBUG mode using the -d option on the command line.
N
Nicolargo 已提交
142
    * Add RESTFul API to the Web server mode
N
Nicolargo 已提交
143
      RestFul API doc: https://github.com/nicolargo/glances/wiki/The-Glances-RESTFULL-JSON-API
144
    * Improve SNMP fallback mode for Cisco IOS, VMware ESXi
N
Nicolargo 已提交
145 146 147 148 149 150 151 152
    * Add --theme-white feature to optimize display for white background
    * Experimental 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.
      Note: This feature uses the matplotlib library.
    * CI: Improve Travis coverage
153 154 155

Bugs corrected:

N
Nicolargo 已提交
156 157 158 159 160
    * Quitting glances leaves a column layout to the current terminal (issue #392)
    * Glances crashes with malformed UTF-8 sequences in process command lines (issue #391)
    * SNMP fallback mode is not Python 3 compliant (issue #386)
    * Trouble using batinfo, hddtemp, pysensors w/ Python (issue #324) 

161

N
Nicolargo 已提交
162 163 164 165 166 167 168 169 170 171 172 173 174 175 176
Version 2.0.1
=============

Maintenance version.

Bugs corrected:

    * Error when displaying numeric process user names (#380)
    * Display users without username correctly (#379)
    * Bug when parsing configuration file (#378)
    * The sda2 partition is not seen by glances (#376)
    * Client crash if server is ended during XML request (#375)
    * Error with the Sensors module on Debian/Ubuntu (#373)
    * Windows don't view all processes (#319) 

177 178 179
Version 2.0
===========

N
Nicolargo 已提交
180
    Glances v2.0 is not a simple upgrade of the version 1.x but a complete code refactoring.
A
Alessio Sergi 已提交
181
    Based on a plugins system, it aims at providing an easy way to add new features.
A
Alessio Sergi 已提交
182 183 184
    - Core defines the basics and commons functions.
    - all stats are grabbed through plugins (see the glances/plugins source folder).
    - also outputs methods (Curse, Web mode, CSV) are managed as plugins.
N
Nicolargo 已提交
185

A
Alessio Sergi 已提交
186
    The Curse interface is almost the same than the version 1.7. Some improvements have been made:
N
Nicolargo 已提交
187 188
    - space optimisation for the CPU, LOAD and MEM stats (justified alignment)
    - CPU:
A
Alessio Sergi 已提交
189
        . CPU stats are displayed as soon as Glances is started
N
Nicolargo 已提交
190 191 192 193 194 195
        . steal CPU alerts are no more logged
    - LOAD:
        . 5 min LOAD alerts are no more logged
    - File System:
        . Display the device name (if space is available)
    - Sensors:
A
Alessio Sergi 已提交
196
        . Sensors and HDD temperature are displayed in the same block
N
Nicolargo 已提交
197 198 199 200 201
    - Process list:
        . Refactor columns: CPU%, MEM%, VIRT, RES, PID, USER, NICE, STATUS, TIME, IO, Command/name
        . The running processes status is highlighted
        . The process name is highlighted in the command line

A
Alessio Sergi 已提交
202 203
    Glances 2.0 brings a brand new Web Interface. You can run Glances in Web server mode and
    consult the stats directly from a standard Web Browser.
N
Nicolargo 已提交
204 205 206 207

    The client mode can now fallback to a simple SNMP mode if Glances server is not found on the remote machine.

    Complete release notes:
N
Nicolargo 已提交
208 209 210 211
    * Cut ifName and DiskName if they are too long in the curses interface (by Nicolargo)
    * Windows CLI is OK but early experimental (by Nicolargo)
    * Add bitrate limits to the networks interfaces (by Nicolargo)
    * Batteries % stats are now in the sensors list (by Nicolargo)
A
Alessio Sergi 已提交
212 213
    * Refactor the client/server password security: using SHA256 (by Nicolargo,
      based on Alessio Sergi's example script)
N
Nicolargo 已提交
214 215 216 217 218 219
    * Refactor the CSV output (by Nicolargo)
    * Glances client fallback to SNMP server if Glances one not found (by Nicolargo)
    * Process list: Highlight running/basename processes (by Alessio Sergi)
    * New Web server mode thk to the Bottle library (by Nicolargo)
    * Responsive design for Bottle interface (by Nicolargo)
    * Remove HTML output (by Nicolargo)
A
Alessio Sergi 已提交
220
    * Enable/disable for optional plugins through the command line (by Nicolargo)
N
Nicolargo 已提交
221 222
    * Refactor the API (by Nicolargo)
    * Load-5 alert are no longer logged (by Nicolargo)
A
Alessio Sergi 已提交
223
    * Rename In/Out by Read/Write for DiskIO according to #339 (by Nicolargo)
N
Nicolargo 已提交
224 225 226
    * Migrate from pysensors to py3sensors (by Alessio Sergi)
    * Migration to PsUtil 2.x (by Nicolargo)
    * New plugins system (by Nicolargo)
A
Alessio Sergi 已提交
227 228
    * Python 2.x and 3.x compatibility (by Alessio Sergi)
    * Code quality improvements (by Alessio Sergi)
N
Nicolargo 已提交
229 230
    * Refactor unitaries tests (by Nicolargo)
    * Development now follow the git flow workflow (by Nicolargo)
231

N
Nicolargo 已提交
232 233 234 235 236

==============================================================================
Glances Version 1.x
==============================================================================

237 238 239
Version 1.7.7
=============

N
Nicolargo 已提交
240 241 242 243
    * Fix CVS export [issue #348]
    * Adapt to PSUtil 2.1.1
    * Compatibility with Python 3.4
    * Improve German update
N
Nicolas Hennion 已提交
244

N
Nicolas Hennion 已提交
245 246 247
Version 1.7.6
=============

248 249 250 251
    * Adapt to psutil 2.0.0 API
    * Fixed psutil 0.5.x support on Windows
    * Fix help screen in 80x24 terminal size
    * Implement toggle of process list display ('z' key)
N
Nicolas Hennion 已提交
252

N
Nicolas Hennion 已提交
253 254 255
Version 1.7.5
=============

256
    * Force the Pypi installer to use the PsUtil branch 1.x (#333)
257

258 259 260
Version 1.7.4
=============

261
    * Add threads number in the task summary line (#308)
262
    * Add system uptime (#276)
263 264
    * Add CPU steal % to cpu extended stats (#309)
    * You can hide disk from the IOdisk view using the conf file (#304)
265
    * You can hide network interface from the Network view using the conf file
266 267
    * Optimisation of CPU consumption (around ~10%)
    * Correct issue #314: Client/server mode always asks for password
A
Alessio Sergi 已提交
268 269 270
    * Correct issue #315: Defining password in client/server mode doesn't work as intended
    * Correct issue #316: Crash in client server mode
    * Correct issue #318: Argument parser, try-except blocks never get triggered
271

N
Nicolas Hennion 已提交
272 273 274 275
Version 1.7.3
=============

    * Add --password argument to enter the client/server password from the prompt
N
Nicolas Hennion 已提交
276 277
    * Fix an issue with the configuration file path (#296)
    * Fix an issue with the HTML template (#301)
N
Nicolas Hennion 已提交
278

N
Nicolas Hennion 已提交
279 280 281 282 283 284 285 286 287
Version 1.7.2
=============

    * Console interface is now Microsoft Windows compatible (thk to @fraoustin)
    * Update documentation and Wiki regarding the API
    * Added package name for python sources/headers in openSUSE/SLES/SLED
    * Add FreeBSD packager
    * Bugs corrected

288 289 290
Version 1.7.1
=============

N
Nicolas Hennion 已提交
291 292 293 294 295 296
    * Fix IoWait error on FreeBSD / Mac OS
    * HDDTemp module is now Python v3 compatible
    * Don't warn a process is not running if countmin=0
    * Add Pypi badge on the README.rst
    * Update documentation
    * Add document structure for http://readthedocs.org
297

N
Nicolas Hennion 已提交
298 299 300
Version 1.7
===========

N
Nicolas Hennion 已提交
301 302 303 304 305 306 307 308 309 310 311
    * Add monitored processes list
    * Add hard disk temperature monitoring (thanks to the HDDtemp daemon)
    * Add batteries capacities information (thanks to the Batinfo lib)
    * Add command line argument -r toggles processes (reduce CPU usage)
    * Add command line argument -1 to run Glances in per CPU mode
    * Platform/architecture is more specific now
    * XML-RPC server: Add IPv6 support for the client/server mode
    * Add support for local conf file
    * Add a uninstall script
    * Add getNetTimeSinceLastUpdate() getDiskTimeSinceLastUpdate() and getProcessDiskTimeSinceLastUpdate() in the API
    * Add more translation: Italien, Chinese
C
Carlos E. Garcia 已提交
312 313
    * and last but not least... up to 100 hundred bugs corrected / software and
    * docs improvements
N
Nicolas Hennion 已提交
314

315 316 317
Version 1.6.1
=============

N
Nicolas Hennion 已提交
318
    * Add per-user settings (configuration file) support
C
Carlos E. Garcia 已提交
319
    * Add -z/--nobold option for better appearance under Solarized terminal
N
Nicolas Hennion 已提交
320 321
    * Key 'u' shows cumulative net traffic
    * Work in improving autoUnit
322
    * Take into account the number of core in the CPU process limit
N
Nicolas Hennion 已提交
323 324 325
    * API improvment add time_since_update for disk, process_disk and network
    * Improve help display
    * Add more dummy FS to the ignore list
326
    * Code refactory: PsUtil < 0.4.1 is depredicated (Thk to Alessio)
N
Nicolas Hennion 已提交
327 328 329
    * Correct a bug on the CPU process limit
    * Fix crash bug when specifying custom server port
    * Add Debian style init script for the Glances server
330

331 332 333 334
Version 1.6
===========

    * Configuration file: user can defines limits
335
    * In client/server mode, limits are set by the server side
336 337 338
    * Display limits in the help screen
    * Add per process IO (read and write) rate in B per second
      IO rate only available on Linux from a root account
339
    * If CPU iowait alert then sort by processes by IO rate
A
asergi 已提交
340
    * Per CPU display IOwait (if data is available)
341
    * Add password for the client/server mode (-P password)
A
asergi 已提交
342
    * Process column style auto (underline) or manual (bold)
343
    * Display a sort indicator (is space is available)
A
asergi 已提交
344
    * Change the table key in the help screen
345

N
Nicolas Hennion 已提交
346 347 348 349
Version 1.5.2
=============

    * Add sensors module (enable it with -e option)
N
Nicolas Hennion 已提交
350
    * Improve CPU stats (IO wait, Nice, IRQ)
N
Nicolas Hennion 已提交
351
    * More stats in lower space (yes it's possible)
N
Nicolas Hennion 已提交
352
    * Refactor processes list and count (lower CPU/MEM footprint)
N
Nicolas Hennion 已提交
353 354 355
    * Add functions to the RCP method
    * Completed unit test
    * and fixes...
N
Nicolas Hennion 已提交
356

N
Nicolas Hennion 已提交
357 358 359 360 361 362
Version 1.5.1
=============

    * Patch for PsUtil 0.4 compatibility
    * Test PsUtil version before running Glances

363 364 365
Version 1.5
===========

A
asergi 已提交
366
    * Add a client/server mode (XMLRPC) for remote monitoring
367
    * Correct a bug on process IO with non root users
368 369
    * Add 'w' shortkey to delete finished warning message
    * Add 'x' shortkey to delete finished warning/critical message
N
Nicolas Hennion 已提交
370 371
    * Bugs correction
    * Code optimization
N
Nicolas Hennion 已提交
372 373 374 375

Version 1.4.2.2
===============

A
Alessio Sergi 已提交
376 377
    * Add switch between bit/sec and byte/sec for network IO
    * Add Changelog (generated with gitchangelog)
N
Nicolas Hennion 已提交
378

N
Nicolas Hennion 已提交
379 380 381
Version 1.4.2.1
===============

A
Alessio Sergi 已提交
382
    * Minor patch to solve memomy issue (#94) on Mac OS X
N
Nicolas Hennion 已提交
383

384 385 386
Version 1.4.2
=============

A
Alessio Sergi 已提交
387
    * Use the new virtual_memory() and virtual_swap() fct (PsUtil)
A
Alessio Sergi 已提交
388 389 390
    * Display "Top process" in logs
    * Minor patch on man page for Debian packaging
    * Code optimization (less try and except)
391

N
Nicolas Hennion 已提交
392 393 394
Version 1.4.1.1
===============

A
Alessio Sergi 已提交
395
    * Minor patch to disable Process IO for OS X (not available in PsUtil)
N
Nicolas Hennion 已提交
396

N
Nicolas Hennion 已提交
397 398 399
Version 1.4.1
=============

A
Alessio Sergi 已提交
400 401 402
    * Per core CPU stats (if space is available)
    * Add Process IO Read/Write information (if space is available)
    * Uniformize units
N
Nicolas Hennion 已提交
403

N
nicolargo 已提交
404 405 406
Version 1.4
===========

A
Alessio Sergi 已提交
407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425
    * Goodby StatGrab... Welcome to the PsUtil library !
    * No more autotools, use setup.py to install (or package)
    * Only major stats (CPU, Load and memory) use background colors
    * Improve operating system name detection
    * New system info: one-line layout and add Arch Linux support
    * No decimal places for values < GB
    * New memory and swap layout
    * Add percentage of usage for both memory and swap
    * Add MEM% usage, NICE, STATUS, UID, PID and running TIME per process
    * Add sort by MEM% ('m' key)
    * Add sort by Process name ('p' key)
    * Multiple minor fixes, changes and improvements
    * Disable Disk IO module from the command line (-d)
    * Disable Mount module from the command line (-m)
    * Disable Net rate module from the command line (-n)
    * Improved FreeBSD support
    * Cleaning code and style
    * Code is now checked with pep8
    * CSV and HTML output (experimental functions, no yet documentation)
426

N
nicolargo 已提交
427 428 429
Version 1.3.7
=============

A
Alessio Sergi 已提交
430 431 432
    * Display (if terminal space is available) an alerts history (logs)
    * Add a limits classe to manage stats limits
    * Manage black and white console (issue #31)
N
nicolargo 已提交
433

434 435 436
Version 1.3.6
=============

A
Alessio Sergi 已提交
437 438 439 440
    * Add control before libs import
    * Change static Python path (issue #20)
    * Correct a bug with a network interface disaippear (issue #27)
    * Add French and Spanish translation (thx to Jean Bob)
441

N
nicolargo 已提交
442 443 444
Version 1.3.5
=============

A
Alessio Sergi 已提交
445 446
    * Add an help panel when Glances is running (key: 'h')
    * Add keys descriptions in the syntax (--help | -h)
N
nicolargo 已提交
447

N
nicolargo 已提交
448 449 450
Version 1.3.4
=============

A
Alessio Sergi 已提交
451 452 453 454 455
    * New key: 'n' to enable/disable network stats
    * New key: 'd' to enable/disable disk IO stats
    * New key: 'f' to enable/disable FS stats
    * Reorganised the screen when stat are not available|disable
    * Force Glances to use the enmbeded fs stats (issue #16)
N
nicolargo 已提交
456

N
nicolargo 已提交
457 458 459
Version 1.3.3
=============

C
Carlos E. Garcia 已提交
460
    * Automatically swith between process short and long name
A
Alessio Sergi 已提交
461 462 463 464
    * Center the host / system information
    * Always put the hour/date in the bottom/right
    * Correct a bug if there is a lot of Disk/IO
    * Add control about available libstatgrab functions
N
nicolargo 已提交
465

N
nicolargo 已提交
466 467 468
Version 1.3.2
=============

A
Alessio Sergi 已提交
469 470 471 472 473
    * Add alert for network bit rate°
    * Change the caption
    * Optimised net, disk IO and fs display (share the space)
      Disable on Ubuntu because the libstatgrab return a zero value
      for the network interface speed.
N
nicolargo 已提交
474

N
nicolargo 已提交
475 476 477
Version 1.3.1
=============

A
Alessio Sergi 已提交
478 479
    * Add alert on load (depend on number of CPU core)
    * Fix bug when the FS list is very long
N
nicolargo 已提交
480

N
nicolargo 已提交
481 482 483
Version 1.3
===========

A
Alessio Sergi 已提交
484
    * Add file system stats (total and used space)
485
    * Adapt unit dynamically (K, M, G)
A
Alessio Sergi 已提交
486
    * Add man page (Thanks to Edouard Bourguignon)
N
nicolargo 已提交
487 488 489

Version 1.2
===========
N
nicolargo 已提交
490

491
    * Resize the terminal and the windows are adapted dynamically
A
Alessio Sergi 已提交
492
    * Refresh screen instantanetly when a key is pressed
N
nicolargo 已提交
493

N
nicolargo 已提交
494
Version 1.1.3
N
v1.1.2  
nicolargo 已提交
495
=============
N
nicolargo 已提交
496

A
Alessio Sergi 已提交
497 498 499 500 501
    * Add disk IO monitoring
    * Add caption
    * Correct a bug when computing the bitrate with the option -t
    * Catch CTRL-C before init the screen (Bug #2)
    * Check if mem.total = 0 before division (Bug #1)