Formatting

This commit is contained in:
Ilya Zlobintsev 2021-03-07 14:33:23 +02:00
parent 14121a17f2
commit 11ec9f39ad
2 changed files with 11 additions and 2 deletions

View File

@ -186,7 +186,13 @@ fn print_stats(d: &DaemonConnection, gpu_id: u32) {
println!(
"{} {}{}",
"Temperature:".green(),
gpu_stats.temperatures.get("edge").unwrap().current.to_string().bold(),
gpu_stats
.temperatures
.get("edge")
.unwrap()
.current
.to_string()
.bold(),
"°C".bold(),
);
println!(

View File

@ -1,5 +1,8 @@
use crate::{config::{GpuConfig, GpuIdentifier}, hw_mon::Temperature};
use crate::hw_mon::{HWMon, HWMonError};
use crate::{
config::{GpuConfig, GpuIdentifier},
hw_mon::Temperature,
};
use pciid_parser::{PciDatabase, VendorData};
use serde::{Deserialize, Serialize};
use std::collections::{BTreeMap, HashMap};