mirror of
https://github.com/ClementTsang/bottom
synced 2024-12-03 17:39:10 +00:00
feature: Show Celcius/Fahrenheit with degree symbol (#391)
This commit is contained in:
parent
e30518bf62
commit
5e28f0c538
1 changed files with 2 additions and 2 deletions
|
@ -93,9 +93,9 @@ pub fn convert_temp_row(app: &App) -> Vec<Vec<String>> {
|
|||
temp_harvest.name.clone(),
|
||||
(temp_harvest.temperature.ceil() as u64).to_string()
|
||||
+ 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::Fahrenheit => "F",
|
||||
data_harvester::temperature::TemperatureType::Fahrenheit => "°F",
|
||||
},
|
||||
]
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue