Repository: incubator-htrace Updated Branches: refs/heads/master 8f2c9576c -> 9c0efd51f
HTRACE-140. Web UI of htraced causes high CPU usage if search result is empty (iwasakims) Project: http://git-wip-us.apache.org/repos/asf/incubator-htrace/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-htrace/commit/9c0efd51 Tree: http://git-wip-us.apache.org/repos/asf/incubator-htrace/tree/9c0efd51 Diff: http://git-wip-us.apache.org/repos/asf/incubator-htrace/diff/9c0efd51 Branch: refs/heads/master Commit: 9c0efd51f53bcb5efa2ef2a624a2cddfb0f01980 Parents: 8f2c957 Author: Masatake Iwasaki <[email protected]> Authored: Wed Mar 25 16:22:20 2015 +0900 Committer: Masatake Iwasaki <[email protected]> Committed: Wed Mar 25 16:22:20 2015 +0900 ---------------------------------------------------------------------- htrace-core/src/web/app/models/span.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-htrace/blob/9c0efd51/htrace-core/src/web/app/models/span.js ---------------------------------------------------------------------- diff --git a/htrace-core/src/web/app/models/span.js b/htrace-core/src/web/app/models/span.js index 306533d..06b6b3c 100644 --- a/htrace-core/src/web/app/models/span.js +++ b/htrace-core/src/web/app/models/span.js @@ -102,7 +102,7 @@ app.Spans = Backbone.PageableCollection.extend({ }, initialize: function() { - this.on("sync", function(collection, response, options) { + this.on("reset", function(collection, response, options) { if (response.length == 0) { delete this.links[this.state.currentPage]; this.getPreviousPage();
