Skip to content

Commit 42dc00c

Browse files
committed
asd
1 parent 4bfbdcb commit 42dc00c

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/tools/fs_speed.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ const util = require('util');
88
const path = require('path');
99
const crypto = require('crypto');
1010
const argv = require('minimist')(process.argv);
11-
const { cluster } = require('../util/fork_utils');
1211
const execAsync = util.promisify(require('child_process').exec);
1312
const Speedometer = require('../util/speedometer');
1413
const RandStream = require('../util/rand_stream');
@@ -94,7 +93,6 @@ const size_name = String(argv.file_size) + String(argv.file_size_units);
9493
const block_count = Math.ceil(file_size / block_size);
9594
const file_size_aligned = block_count * block_size;
9695
const nb_native = argv.mode === 'nsfs' && require('../util/nb_native');
97-
const is_master = cluster.isPrimary;
9896

9997
const 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
/**

0 commit comments

Comments
 (0)