typo.
This commit is contained in:
parent
dfd8a00283
commit
13cd06ec0d
|
@ -184,8 +184,8 @@ func (mhr MarketHoursRange) Translate(value float64) int {
|
||||||
valueDelta := Date.CalculateMarketSecondsBetween(mhr.Min, valueTimeEastern, mhr.GetMarketOpen(), mhr.GetMarketClose(), mhr.HolidayProvider)
|
valueDelta := Date.CalculateMarketSecondsBetween(mhr.Min, valueTimeEastern, mhr.GetMarketOpen(), mhr.GetMarketClose(), mhr.HolidayProvider)
|
||||||
translated := int((float64(valueDelta) / float64(totalSeconds)) * float64(mhr.Domain))
|
translated := int((float64(valueDelta) / float64(totalSeconds)) * float64(mhr.Domain))
|
||||||
|
|
||||||
if r.IsDescending() {
|
if mhr.IsDescending() {
|
||||||
return r.Domain - translated
|
return mhr.Domain - translated
|
||||||
}
|
}
|
||||||
|
|
||||||
return translated
|
return translated
|
||||||
|
|
Loading…
Reference in New Issue
Block a user