From c8d900349a2a518c5fee9610b6a903a2ff546e50 Mon Sep 17 00:00:00 2001 From: schneefux Date: Sat, 5 May 2018 23:31:56 +0200 Subject: cache many small periods on disk and aggregate them --- reduce.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'reduce.js') diff --git a/reduce.js b/reduce.js index 8c29055..b17a246 100644 --- a/reduce.js +++ b/reduce.js @@ -19,14 +19,10 @@ function aggregatePayloads(config) { R.prop(0), ), R.pipe( - R.project(config.sum), + R.project(R.concat(config.sum, R.of('Count'))), utils.mergeAllWith(R.add), utils.unlist, ), - R.pipe( - R.length, - R.objOf('Count'), - ), ]), ), ); -- cgit v1.3.1