mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-07-23 05:34:57 +02:00
feature: Show Celcius/Fahrenheit with degree symbol (#391)
This commit is contained in:
parent
e30518bf62
commit
5e28f0c538
@ -93,9 +93,9 @@ pub fn convert_temp_row(app: &App) -> Vec<Vec<String>> {
|
|||||||
temp_harvest.name.clone(),
|
temp_harvest.name.clone(),
|
||||||
(temp_harvest.temperature.ceil() as u64).to_string()
|
(temp_harvest.temperature.ceil() as u64).to_string()
|
||||||
+ match temp_type {
|
+ match temp_type {
|
||||||
data_harvester::temperature::TemperatureType::Celsius => "C",
|
data_harvester::temperature::TemperatureType::Celsius => "°C",
|
||||||
data_harvester::temperature::TemperatureType::Kelvin => "K",
|
data_harvester::temperature::TemperatureType::Kelvin => "K",
|
||||||
data_harvester::temperature::TemperatureType::Fahrenheit => "F",
|
data_harvester::temperature::TemperatureType::Fahrenheit => "°F",
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user