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');
88const path = require ( 'path' ) ;
99const crypto = require ( 'crypto' ) ;
1010const argv = require ( 'minimist' ) ( process . argv ) ;
11- const { cluster } = require ( '../util/fork_utils' ) ;
1211const execAsync = util . promisify ( require ( 'child_process' ) . exec ) ;
1312const Speedometer = require ( '../util/speedometer' ) ;
1413const RandStream = require ( '../util/rand_stream' ) ;
@@ -94,7 +93,6 @@ const size_name = String(argv.file_size) + String(argv.file_size_units);
9493const block_count = Math . ceil ( file_size / block_size ) ;
9594const file_size_aligned = block_count * block_size ;
9695const nb_native = argv . mode === 'nsfs' && require ( '../util/nb_native' ) ;
97- const is_master = cluster . isPrimary ;
9896
9997const speedometer = new Speedometer ( {
10098 name : 'FS Speed' ,
@@ -137,9 +135,6 @@ async function workers_func(worker_id, worker_info) {
137135 fs . mkdirSync ( argv . path , { recursive : true } ) ;
138136 for ( let i = 0 ; i < argv . concur ; ++ i ) promises . push ( io_worker ( worker_id , i ) ) ;
139137 await Promise . all ( promises ) ;
140- speedometer . clear_interval ( ) ;
141- if ( is_master ) speedometer . report ( ) ;
142- process . exit ( 0 ) ;
143138}
144139
145140/**
You can’t perform that action at this time.
0 commit comments