Skip to content

Commit

Permalink
overlays/stats: fix empty uptime
Browse files Browse the repository at this point in the history
  • Loading branch information
sogehige committed May 4, 2017
1 parent 00af0a6 commit 54f5910
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/overlays/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function Stats () {

Stats.prototype._get = function (self, socket) {
const stats = {
uptime: global.twitch.getTime(false),
uptime: global.twitch.getTime(global.twitch.isOnline ? global.twitch.when.online : global.twitch.when.offline, false),
viewers: global.twitch.currentViewers,
followers: global.twitch.currentFollowers
}
Expand Down

0 comments on commit 54f5910

Please sign in to comment.