Skip to content

Commit 90644da

Browse files
Thomas Rueckstiessrueckstiess
authored andcommitted
smaller trickles in progress bar, lowercase metrics
1 parent da9e359 commit 90644da

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/models/sampled-schema.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -172,15 +172,16 @@ module.exports = Schema.extend({
172172
var timeToFirstDoc = timeAtFirstDoc - start;
173173

174174
metrics.track('Schema: Complete', {
175-
Duration: totalTime,
176-
'Total Document Count': model.total,
177-
'Sample Size': model.documents.length,
178-
'Errored Document Count': erroredOnDocs.length,
179-
'Time to First Doc': timeToFirstDoc,
180-
'Average Time Per Doc': (totalTime - timeToFirstDoc) / model.documents.length
181-
// 'Schema Height': model.height, // # of top level keys
182-
// 'Schema Width': model.width, // max nesting depth
183-
// 'Schema Sparsity': model.sparsity // lots of fields missing or consistent
175+
duration: totalTime,
176+
'total document count': model.total,
177+
'sample size': model.documents.length,
178+
'errored document count': erroredOnDocs.length,
179+
'total sample time': timeToFirstDoc,
180+
'total analysis time': totalTime - timeToFirstDoc,
181+
'average analysis time per doc': (totalTime - timeToFirstDoc) / model.documents.length
182+
// 'Schema Height': model.height, // # of top level keys
183+
// 'Schema Width': model.width, // max nesting depth
184+
// 'Schema Sparsity': model.sparsity // lots of fields missing or consistent
184185
});
185186
options.success({});
186187
};

src/statusbar/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@ var StatusbarView = View.extend({
9090
trickle: function(bool) {
9191
if (bool) {
9292
this.trickleTimer = setInterval(function() {
93-
var inc = _.random(1, 5);
94-
this.width = Math.min(96, this.width + inc);
93+
this.width = Math.min(98, this.width + _.random(1, 3));
9594
}.bind(this), 800);
9695
} else {
9796
clearInterval(this.trickleTimer);

0 commit comments

Comments
 (0)