feat/fix(node_info): expose temp_unit in graphics API response & fix temperature conversion (#295)

Co-authored-by: Meliox <na>
This commit is contained in:
MelioxandMeliox authored and GitHub committed 2026-08-14 20:32:10 +02:00
1 parent 8ebc2b4753
commit cee8d04e36
2 files changed
+23 -12

No files matched your search

@@ -68,9 +68,10 @@ sub _merge_graphics_files {
my $merged = {
Graphics => {
Intel => {},
NVIDIA => {},
AMD => {},
Intel => {},
NVIDIA => {},
AMD => {},
temp_unit => $config{lm_sensors}{temp_unit},
}
};
@@ -134,7 +135,7 @@ sub _load_graphics_data {
\@filepaths,
$graphics_cache,
\&_merge_graphics_files,
{ Graphics => { Intel => {}, NVIDIA => {}, AMD => {} } }
{ Graphics => { Intel => {}, NVIDIA => {}, AMD => {}, temp_unit => $config{lm_sensors}{temp_unit} } }
);
my $intel_count = scalar(keys %{$data->{Graphics}{Intel} // {}});