@@ -87,8 +87,8 @@ class BenchmarkProgress {
87
87
const runsPerFile = this . runsPerFile ;
88
88
const completedFiles = Math . floor ( completedRuns / runsPerFile ) ;
89
89
const scheduledFiles = this . benchmarks . length ;
90
- const completedRunsForFile = finished ? runsPerFile :
91
- completedRuns % runsPerFile ;
90
+ const completedRunsForFile =
91
+ finished ? runsPerFile : completedRuns % runsPerFile ;
92
92
const completedConfig = this . completedConfig ;
93
93
const scheduledConfig = this . scheduledConfig ;
94
94
@@ -101,12 +101,11 @@ class BenchmarkProgress {
101
101
const percent = pad ( Math . floor ( completedRate * 100 ) , 3 , ' ' ) ;
102
102
103
103
const caption = finished ? 'Done\n' : this . currentFile ;
104
- return `[${ getTime ( diff ) } |% ${
105
- percent } | ${
106
- fraction ( completedFiles , scheduledFiles ) } files | ${
107
- fraction ( completedRunsForFile , runsPerFile ) } runs | ${
108
- fraction ( completedConfig , scheduledConfig ) } configs]: ${
109
- caption } `;
104
+ return `[${ getTime ( diff ) } |% ${ percent } | ` +
105
+ `${ fraction ( completedFiles , scheduledFiles ) } files | ` +
106
+ `${ fraction ( completedRunsForFile , runsPerFile ) } runs | ` +
107
+ `${ fraction ( completedConfig , scheduledConfig ) } configs]: ` +
108
+ `${ caption } ` ;
110
109
}
111
110
112
111
updateProgress ( finished ) {
0 commit comments