Skip to content

Commit 5b7e9ef

Browse files
Update calculate.js to account for the change (Add +1 to size for comma, line 48 in algorithm) made to the extended result size algorithm
1 parent 41a3521 commit 5b7e9ef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

calculate.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ function initializeDataStructures(sizeMap, results, stringNodeQuery){
197197
function calculateAllSubqueries(structures, query, stringNodeQuery, u, calculationContext, path){
198198
return Promise.all(query.map(function(subquery, index) {
199199
if (index !== 0) {
200+
structures.sizeMap.get(stringNodeQuery).push(1);
200201
structures.results.get(stringNodeQuery).push(",");
201202
}
202203
let stringNodeSubquery = JSON.stringify([u, [subquery]]);

0 commit comments

Comments
 (0)