runchart x axis labels fix

This commit is contained in:
sqshq 2019-02-02 09:23:42 -05:00
parent e2b478657a
commit b7e8c4fb5a
1 changed files with 1 additions and 1 deletions

View File

@ -273,7 +273,7 @@ func (self *RunChart) renderAxes(buffer *Buffer) {
// draw x axis time labels
for i := 1; i <= self.grid.linesCount; i++ {
labelTime := self.grid.timeExtremum.max.Add(time.Duration(-i) * time.Second)
labelTime := self.grid.timeExtremum.max.Add(time.Duration(-i) * self.grid.paddingDuration)
buffer.SetString(
labelTime.Format("15:04:05"),
NewStyle(ColorWhite),