minor changes

This commit is contained in:
Meliox 2026-04-06 21:00:26 +02:00
parent 6d5b87e202
commit d3e3d68a81
2 changed files with 7 additions and 3 deletions

View File

@ -55,6 +55,8 @@ my $sensors_state_file = "$pve_mod_working_dir/sensors.json";
my $ups_state_file = "$pve_mod_working_dir/ups.json";
my $pve_mod_worker_lock = "$pve_mod_working_dir/pve_mod_worker.lock";
my $startup_lock = "$pve_mod_working_dir/startup.lock";
my $RRD_SOCKET = '/var/run/rrdcached.sock';
my $RRD_BASE = '/var/lib/rrdcached/db/pve-mod-gpu';
# Runtime state variables
my $process_type = 'main'; # 'main', 'worker', or 'collector'
@ -524,9 +526,6 @@ sub _collector_for_intel_device {
# RRD Support for GPU metrics
# ============================================================================
my $RRD_SOCKET = '/var/run/rrdcached.sock';
my $RRD_BASE = '/var/lib/rrdcached/db/pve-mod-gpu';
sub _get_nodename {
return PVE::INotify::nodename();
}

View File

@ -503,6 +503,11 @@ function install_mod {
## Historical GPU data ##
if [[ "$ENABLE_GPU_HISTORY" == true ]]; then
install_gpu_history
# todo
# add nodes.pm index list — add gpumeta after gpurrddata:
fi
#### Install UI modification module ####