Lines Matching refs:buf
72 buf := &strings.Builder{}
76 buf.WriteByte(c)
82 buf.WriteByte(c)
89 buf.WriteByte(c)
91 fmt.Fprintf(buf, "%d", counts.StartedActions)
93 fmt.Fprintf(buf, "%d", counts.TotalActions)
95 fmt.Fprintf(buf, "%d", counts.RunningActions)
97 fmt.Fprintf(buf, "%d", counts.TotalActions-counts.StartedActions)
99 fmt.Fprintf(buf, "%d", counts.FinishedActions)
101 fmt.Fprintf(buf, "%.1f", float64(counts.FinishedActions)/time.Since(s.start).Seconds())
104 buf.WriteRune('?')
106 fmt.Fprintf(buf, "%3d%%", 100*counts.FinishedActions/counts.TotalActions)
108 fmt.Fprintf(buf, "%.3f", time.Since(s.start).Seconds())
112 buf.WriteRune('?')
114 fmt.Fprintf(buf, "%s", remainingTimeString(counts.EstimatedTime))
117 buf.WriteString("unknown placeholder '")
118 buf.WriteByte(c)
119 buf.WriteString("'")
122 return buf.String()