mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-24 15:15:44 +00:00
Fix PCP ZramMeter in presense of missing zram metrics
This commit is contained in:
parent
e1d1a5cec6
commit
407d32e121
@ -605,6 +605,9 @@ void Platform_setZramValues(Meter* this) {
|
||||
(void)this;
|
||||
|
||||
int i, count = Metric_instanceCount(PCP_ZRAM_CAPACITY);
|
||||
if(!count)
|
||||
return;
|
||||
|
||||
pmAtomValue *values = xCalloc(count, sizeof(pmAtomValue));
|
||||
ZramStats stats = {0};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user