@@ -144,7 +144,7 @@ impl NvidiaGpuController {
144144 . expect ( "Can no longer get device" )
145145 }
146146
147- fn get_target_temp_info ( & self ) -> Option < FanInfo > {
147+ fn get_target_temp ( & self ) -> Option < FanInfo > {
148148 let device = self . device ( ) ;
149149 let current = device
150150 . temperature_threshold ( TemperatureThreshold :: AcousticCurr )
@@ -485,7 +485,7 @@ impl GpuController for NvidiaGpuController {
485485 DeviceFlag :: ConfigurableFanControl ,
486486 DeviceFlag :: AutoFanThreshold ,
487487 ] ;
488- if self . get_target_temp_info ( ) . is_some ( ) {
488+ if self . get_target_temp ( ) . is_some ( ) {
489489 flags. push ( DeviceFlag :: HasPmfw ) ;
490490 }
491491 flags
@@ -633,7 +633,7 @@ impl GpuController for NvidiaGpuController {
633633 pwm_min : fan_range. map ( |( min, _) | ( f64:: from ( min) * 2.55 ) . round ( ) as u32 ) ,
634634 temperature_range : None ,
635635 pmfw_info : PmfwInfo {
636- target_temp : self . get_target_temp_info ( ) ,
636+ target_temp : self . get_target_temp ( ) ,
637637 ..Default :: default ( )
638638 } ,
639639 } ,
@@ -932,7 +932,7 @@ impl GpuController for NvidiaGpuController {
932932 }
933933
934934 if let Some ( target_temp) = config. pmfw_options . target_temperature
935- && let Some ( info) = self . get_target_temp_info ( )
935+ && let Some ( info) = self . get_target_temp ( )
936936 && let Some ( ( min, max) ) = info. allowed_range
937937 {
938938 let target_temp = target_temp. clamp ( min, max) ;
0 commit comments