Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
cs0x7f committed Apr 19, 2024
1 parent b124946 commit 5408dc0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/js/stats/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -1722,15 +1722,15 @@ var stats = execMain(function(kpretty, round, kpround) {
} else if (signal == 'property') {
if (/^(:?useMilli|timeFormat|stat[12][tl]|statinv)$/.exec(value[0])) {
roundMilli = kernel.getProp('useMilli') ? 1 : 10;
if (/^stat[12][tl]$/.exec(value[0])) {
stat1 = [1, -1][~~kernel.getProp('stat1t')] * kernel.getProp('stat1l');
stat2 = [1, -1][~~kernel.getProp('stat2t')] * kernel.getProp('stat2l');
len1 = Math.abs(stat1);
len2 = Math.abs(stat2);
times_stats_list = new TimeStat([stat1, stat2], times.length, timeAt);
}
table_ctrl.updateTable(false);
updateUtil(['property', value[0]]);
} else if (/^stat[12][tl]$/.exec(value[0])) {
stat1 = [1, -1][~~kernel.getProp('stat1t')] * kernel.getProp('stat1l');
stat2 = [1, -1][~~kernel.getProp('stat2t')] * kernel.getProp('stat2l');
len1 = Math.abs(stat1);
len2 = Math.abs(stat2);
times_stats_list = new TimeStat([stat1, stat2], times.length, timeAt);
updateUtil(['property', value[0]]);
} else if (/^stat(sum|thres|[bw]pa)$/.exec(value[0])) {
updateSumTable();
} else if (value[0] == 'statssum') {
Expand Down

0 comments on commit 5408dc0

Please sign in to comment.