typo.
This commit is contained in:
parent
dfd8a00283
commit
13cd06ec0d
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue