Skip to content

Commit

Permalink
Values in k above 1000
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbelgium authored and Nachtzuster committed Nov 9, 2024
1 parent 5b6016f commit 5257f32
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions scripts/play.php
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,12 @@ function changeDetection(filename,copylink=false) {
if ($_GET['sort'] == "confidence") {
$values[] = ' (' . round($results['MaxConfidence'] * 100) . '%)';
} elseif ($_GET['sort'] == "occurrences") {
$values[] = ' (' . $results['Count'] . ')';
$valuescount = $results['Count'];
if ($valuescount >= 1000) {
$values[] = ' (' . round($valuescount / 1000, 1) . 'k)';
} else {
$values[] = ' (' . $valuescount . ')';
}
}
}

Expand Down Expand Up @@ -486,7 +491,12 @@ function changeDetection(filename,copylink=false) {
if ($_GET['sort'] == "confidence") {
$values[] = ' (' . round($results['MaxConfidence'] * 100) . '%)';
} elseif ($_GET['sort'] == "occurrences") {
$values[] = ' (' . $results['Count'] . ')';
$valuescount = $results['Count'];
if ($valuescount >= 1000) {
$values[] = ' (' . round($valuescount / 1000, 1) . 'k)';
} else {
$values[] = ' (' . $valuescount . ')';
}
}
}
}
Expand Down

0 comments on commit 5257f32

Please sign in to comment.