mirror of
https://github.com/xzeldon/htop.git
synced 2025-04-20 08:45:45 +03: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;
|
(void)this;
|
||||||
|
|
||||||
int i, count = Metric_instanceCount(PCP_ZRAM_CAPACITY);
|
int i, count = Metric_instanceCount(PCP_ZRAM_CAPACITY);
|
||||||
|
if(!count)
|
||||||
|
return;
|
||||||
|
|
||||||
pmAtomValue *values = xCalloc(count, sizeof(pmAtomValue));
|
pmAtomValue *values = xCalloc(count, sizeof(pmAtomValue));
|
||||||
ZramStats stats = {0};
|
ZramStats stats = {0};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user