Skip to content

Commit

Permalink
i guess we need more time
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmud committed Mar 4, 2014
1 parent 3e30555 commit 1ab406c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions models/user/progress.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ User.prototype.remaining = function() {

var sr = this.statsRemaining()

// 10 seconds for stats by default
if (ret && sr === null) sr = 10000
// 15 seconds for stats by default
if (ret && sr === null) sr = 15000

if (ret === 0 && sr === null) return null

Expand All @@ -112,7 +112,7 @@ User.prototype.statsRemaining = function() {

if (user.isIng()) {
// At least five seconds
return Math.round(Math.sqrt(total) * (100 - (user.stats_p || 0)) * 2.5) + 5000
return Math.round(Math.sqrt(total) * (100 - (user.stats_p || 0)) * 10) + 5000
}

return null
Expand Down
1 change: 0 additions & 1 deletion static/js/chart/bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,6 @@ Bar.prototype.grouped = function transitionGrouped(dur) {
var y = self.y, x = self.x, n = self.n;

y.domain([0, self.yGroupMax]);
console.log(y)

self.style = 'grouped';

Expand Down
2 changes: 1 addition & 1 deletion tasks/compute/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ compute = User.ensured(task.compute_pool.pooled(_compute = function(computings,
log('resetting %s\'s compute status', user.uid)
user.update({
stats_fail: stats_fail + 1,
stats_status: err,
stats_status: err.message,
}, function() {
arg.error(err)
})
Expand Down

0 comments on commit 1ab406c

Please sign in to comment.