From b7e8c4fb5af072a3f1549b75b4a30af2a3c00377 Mon Sep 17 00:00:00 2001 From: sqshq Date: Sat, 2 Feb 2019 09:23:42 -0500 Subject: [PATCH] runchart x axis labels fix --- widgets/runchart.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/runchart.go b/widgets/runchart.go index b853649..5610926 100644 --- a/widgets/runchart.go +++ b/widgets/runchart.go @@ -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),