8000 fixed bug in rank · taskflow/tfprof@bdff309 · GitHub
[go: up one dir, main page]

Skip to content

Commit bdff309

Browse files
fixed bug in rank
1 parent fd5be3b commit bdff309

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

js/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ function _render_rankGraph() {
860860

861861
// xlabel
862862
tfp.rankG.select('text.tfp-rank-label')
863-
.html(`Top ${limit[0]+1}-${limit[1]} Critical Tasks`);
863+
.html(`Top ${limit[0]+1}-${limit[0]+rank.length} Critical Tasks`);
864864
}
865865

866866
function _render_rank() {
@@ -1077,8 +1077,8 @@ function _adjust_menu() {
10771077
});
10781078

10791079
// rank menu
1080-
document.getElementById('tfp_menu_rank_from').value = '';
1081-
document.getElementById('tfp_menu_rank_to').value = '';
1080+
document.getElementById('tfp_menu_rank_from').value = 1;
1081+
document.getElementById('tfp_menu_rank_to').value = 50;
10821082
}
10831083

10841084
function feed(input) {

0 commit comments

Comments
 (0)
0