Commit f8ea6738a9ca5394bf6cd5ae4f6df9bc685fb85c
log progress on live stream
Dominic Tarr committed on 10/1/2017, 9:48:11 AMParent: 3d6366724683e67af9ce3e554c94edb03d13b0e8
Files changed
test/random.js | changed |
test/random.js | ||
---|---|---|
@@ -11,9 +11,8 @@ | ||
11 | 11 … | var dogs = require('dog-names') |
12 | 12 … | |
13 | 13 … | var generated = {}, F=100,N=10000 |
14 | 14 … | |
15 | - | |
16 | 15 … | //build a random network, with n members. |
17 | 16 … | function bar (prog) { |
18 | 17 … | var r = prog.progress/prog.total |
19 | 18 … | var s = '\r', M = 50 |
@@ -190,9 +189,10 @@ | ||
190 | 189 … | |
191 | 190 … | pull( |
192 | 191 … | dump.createLogStream({live: true, keys: false}), |
193 | 192 … | pull.drain(function (e) { |
194 | - live ++ | |
193 … | + if(!(live ++ % 100)) | |
194 … | + console.log('live', live) | |
195 | 195 … | }) |
196 | 196 … | ) |
197 | 197 … | |
198 | 198 … | var wants = {}, n = 0, c = 0, start = Date.now() |
Built with git-ssb-web