remove unused vendor field.

This commit is contained in:
jasonwitty 2025-08-11 14:25:58 -07:00
parent 4efeb3b60f
commit 250f7bf93a

View File

@ -7,7 +7,6 @@ pub struct GpuMetrics {
pub utilization_gpu_pct: u32, // 0..100
pub mem_used_bytes: u64,
pub mem_total_bytes: u64,
// pub vendor: String,
}
pub fn collect_all_gpus() -> Result<Vec<GpuMetrics>, Box<dyn std::error::Error>> {
@ -19,7 +18,6 @@ pub fn collect_all_gpus() -> Result<Vec<GpuMetrics>, Box<dyn std::error::Error>>
utilization_gpu_pct: info.load_pct() as u32,
mem_used_bytes: info.used_vram(),
mem_total_bytes: info.total_vram(),
// vendor: gpu.vendor().to_string(),
};
Ok(vec![metrics])