git ssb

4+

Dominic / scuttlebot



Commit f8ea6738a9ca5394bf6cd5ae4f6df9bc685fb85c

log progress on live stream

Dominic Tarr committed on 10/1/2017, 9:48:11 AM
Parent: 3d6366724683e67af9ce3e554c94edb03d13b0e8

Files changed

test/random.jschanged
test/random.jsView
@@ -11,9 +11,8 @@
1111 var dogs = require('dog-names')
1212
1313 var generated = {}, F=100,N=10000
1414
15-
1615 //build a random network, with n members.
1716 function bar (prog) {
1817 var r = prog.progress/prog.total
1918 var s = '\r', M = 50
@@ -190,9 +189,10 @@
190189
191190 pull(
192191 dump.createLogStream({live: true, keys: false}),
193192 pull.drain(function (e) {
194- live ++
193 + if(!(live ++ % 100))
194 + console.log('live', live)
195195 })
196196 )
197197
198198 var wants = {}, n = 0, c = 0, start = Date.now()

Built with git-ssb-web