mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-08-02 13:56:23 +00:00
update 1.2.2.2 beta
This commit is contained in:
Binary file not shown.
@@ -1 +1 @@
|
|||||||
375863dcab1afad9aed9e57a04016c29212f3cc8a543af386c5ed933944bec7d ProxMenux-1.2.2.2-beta.AppImage
|
0a8d1bf1c81a9f60926d5a4af1a570c4acfcd1b41581ce02377600b2b84bf749 ProxMenux-1.2.2.2-beta.AppImage
|
||||||
|
|||||||
@@ -10086,11 +10086,18 @@ def api_node_metrics():
|
|||||||
if rrd_result.returncode == 0:
|
if rrd_result.returncode == 0:
|
||||||
rrd_data = json.loads(rrd_result.stdout)
|
rrd_data = json.loads(rrd_result.stdout)
|
||||||
|
|
||||||
if zfs_arc_size > 0:
|
# PVE 9.x exposes the actual ARC history as `arcsize` in RRD;
|
||||||
for item in rrd_data:
|
# the previous code ignored it and stamped every point with
|
||||||
# If zfsarc field is missing or 0, add current value
|
# the live ARC size, producing a flat band at the current
|
||||||
if 'zfsarc' not in item or item.get('zfsarc', 0) == 0:
|
# value (issue: ZFS ARC line painted full-bar). Use the real
|
||||||
item['zfsarc'] = zfs_arc_size
|
# series when present so the chart matches Proxmox's own
|
||||||
|
# Summary view. On older PVE that doesn't expose `arcsize`,
|
||||||
|
# fall back to the live value as a constant placeholder.
|
||||||
|
for item in rrd_data:
|
||||||
|
if 'arcsize' in item:
|
||||||
|
item['zfsarc'] = item['arcsize']
|
||||||
|
elif zfs_arc_size > 0 and ('zfsarc' not in item or item.get('zfsarc', 0) == 0):
|
||||||
|
item['zfsarc'] = zfs_arc_size
|
||||||
|
|
||||||
# 24h downsampling: RRD returns ~1440 minute-level points which
|
# 24h downsampling: RRD returns ~1440 minute-level points which
|
||||||
# plots as a dense thicket of vertical spikes. Group into 5-min
|
# plots as a dense thicket of vertical spikes. Group into 5-min
|
||||||
|
|||||||
Reference in New Issue
Block a user