kopia lustrzana https://github.com/c9/core
Merge pull request +14341 from c9/ide-manual-stats-refresh
Disable stats if latency is >= 500mspull/315/merge
commit
86803ef0dd
|
@ -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 });
|
||||
|
|
|
@ -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() {}
|
||||
},
|
||||
|
|
Ładowanie…
Reference in New Issue