Update SettingsHandler.cs

removed extra parentheses
This commit is contained in:
HojouFotytu 2019-02-27 14:36:18 +09:00 committed by GitHub
parent e95f490717
commit aa5cc5b801
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -545,7 +545,7 @@ namespace Core.ProfitTrailer
double oldValueOffset = (oldValue * (offsetValuePercent / 100));
if (propertyKey.Contains("rebuy_timeout", StringComparison.CurrentCultureIgnoreCase) || (propertyKey.Contains("trading_pairs", StringComparison.CurrentCultureIgnoreCase) )
if (propertyKey.Contains("rebuy_timeout", StringComparison.CurrentCultureIgnoreCase) || propertyKey.Contains("trading_pairs", StringComparison.CurrentCultureIgnoreCase))
{
// Ensure some values are rounded up to integers for PT comaptability
newValueString = ((int)(Math.Round((oldValue + oldValueOffset), MidpointRounding.AwayFromZero) + .5)).ToString(new System.Globalization.CultureInfo("en-US"));