File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ const util = require('util');
8
8
const path = require ( 'path' ) ;
9
9
const crypto = require ( 'crypto' ) ;
10
10
const argv = require ( 'minimist' ) ( process . argv ) ;
11
- const { cluster } = require ( '../util/fork_utils' ) ;
12
11
const execAsync = util . promisify ( require ( 'child_process' ) . exec ) ;
13
12
const Speedometer = require ( '../util/speedometer' ) ;
14
13
const RandStream = require ( '../util/rand_stream' ) ;
@@ -94,7 +93,6 @@ const size_name = String(argv.file_size) + String(argv.file_size_units);
94
93
const block_count = Math . ceil ( file_size / block_size ) ;
95
94
const file_size_aligned = block_count * block_size ;
96
95
const nb_native = argv . mode === 'nsfs' && require ( '../util/nb_native' ) ;
97
- const is_master = cluster . isPrimary ;
98
96
99
97
const speedometer = new Speedometer ( {
100
98
name : 'FS Speed' ,
@@ -137,9 +135,6 @@ async function workers_func(worker_id, worker_info) {
137
135
fs . mkdirSync ( argv . path , { recursive : true } ) ;
138
136
for ( let i = 0 ; i < argv . concur ; ++ i ) promises . push ( io_worker ( worker_id , i ) ) ;
139
137
await Promise . all ( promises ) ;
140
- speedometer . clear_interval ( ) ;
141
- if ( is_master ) speedometer . report ( ) ;
142
- process . exit ( 0 ) ;
143
138
}
144
139
145
140
/**
You can’t perform that action at this time.
0 commit comments