mirror of https://github.com/xzeldon/htop.git
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