Merge pull request +14341 from c9/ide-manual-stats-refresh

Disable stats if latency is >= 500ms
pull/315/merge
Tim Robinson 2016-07-06 09:26:48 -04:00 zatwierdzone przez GitHub
commit 86803ef0dd
2 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -120,6 +120,11 @@ define(function(require, exports, module) {
* @return {Object}
*/
getLastPing: apiFunction.bind(null, "getLastPing"),
/**
* Add a hook for ping.complete
*/
onPingComplete: apiFunction.bind(null, "onPingComplete"),
});
register(null, { metrics: plugin });

Wyświetl plik

@ -446,6 +446,7 @@ require([
"metrics": {
getLastPing: function() { throw Error("Not implemented"); },
getLastest: function() { throw Error("Not implemented"); },
onPingComplete: function() { throw Error("Not implemented"); },
log: function() {},
increment: function() {}
},