INNER CODE UNIT · Go
func
asciimoo/wuzz · status-line.go:23
func (s *StatusLineFunctions) Duration() string {
if len(s.app.history) == 0 {
return ""
}
return s.app.history[s.app.historyIndex].Duration.String()
}
func (s *StatusLineFunctions) HistorySize() string {
return strconv.Itoa(len(s.app.history))
}
func (s *StatusLineFunctions) RequestNumber() string {
i := s.app.historyIndex
if len(s.app.history) > 0 {
i += 1
}
return strconv.Itoa(i)
}