BUGFIX: Fix crash when adding meters and toggling detailed CPU time.

See https://bugzilla.redhat.com/show_bug.cgi?id=987805 for details.
(thanks to Dawid Gajownik for the detailed analysis!)
This commit is contained in:
Hisham Muhammad
2014-01-16 01:40:47 -02:00
parent 4256c23d84
commit c1e0f6e17c
12 changed files with 20 additions and 24 deletions

View File

@ -66,7 +66,7 @@ MeterClass MemoryMeter_class = {
},
.setValues = MemoryMeter_setValues,
.defaultMode = BAR_METERMODE,
.items = 3,
.maxItems = 3,
.total = 100.0,
.attributes = MemoryMeter_attributes,
"Memory",