Fixed .convert f -> c

This commit is contained in:
Kwoth 2016-10-16 00:51:41 +02:00
parent 00cb7621b5
commit bd3caa8407

View File

@ -148,10 +148,10 @@ namespace NadekoBot.Modules.Utility
break; break;
} }
//from Kelvin to target //from Kelvin to target
switch (targetUnit.Triggers.First()) switch (targetUnit.Triggers.First().ToUpperInvariant())
{ {
case "C": case "C":
res = value - 273.15m; //celcius! res = res - 273.15m; //celcius!
break; break;
case "F": case "F":
res = res * (9m / 5m) - 459.67m; res = res * (9m / 5m) - 459.67m;