git ssb

0+

cel / ssb-activity



Commit ff98921335def95aebf4415c69f785dca02cbcc9

Show peek intervals

cel committed on 3/6/2021, 5:17:45 PM
Parent: e531c0e256161a5923b906a32a4573262242f0a3

Files changed

counts.jschanged
counts.jsView
@@ -45,8 +45,11 @@
4545 function toISODateString(d) {
4646 return d.toISOString().replace(/T.*/, '')
4747 }
4848
49 +var max = 0
50 +var maxDate
51 +
4952 pull(
5053 File(path.join(__dirname, series + '.jsonp')),
5154 Split(),
5255 pull.filter(Boolean),
@@ -55,9 +58,11 @@
5558 var ms = interval.time * unit
5659 if (ms > last) return
5760 var d = new Date(ms)
5861 var count = interval.ids.length
62 + if (count > max) max = count, maxDate = d
5963 console.log(toISODateString(d), count)
6064 }, function (err) {
6165 if (err) throw err
66 + console.log(toISODateString(maxDate), max, 'max')
6267 })
6368 )

Built with git-ssb-web