Skip to content

Commit f873218

Browse files
committed
Home: report total CVE records in terms of thousands (not the exact count)
1 parent d9e2d01 commit f873218

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/views/Home.vue

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
Identify, define, and catalog publicly disclosed cybersecurity vulnerabilities.
1313
<button v-if="cveRecordsLoading" class="button is-loading cve-margin-top-neg7 cve-button-ghost"></button>
1414
<p class="subtile mt-2" v-if="!cveRecordsLoading && !cveRecordsRequestErrored">
15-
Currently, there are <span class="has-text-weight-bold">{{cveRecordsTotal}}</span> CVE Records accessible via
16-
<router-link to="/Downloads">Download</router-link>
17-
or <span class="has-text-weight-bold">Keyword Search</span> above
15+
There are currently over <span class="has-text-weight-bold">{{cveRecordsTotal}}</span>
16+
CVE Records accessible via <router-link to="/Downloads">Download</router-link>
17+
or <span class="has-text-weight-bold">Keyword Search</span> above.
1818
</p>
1919
</div>
2020
<div class="notification is-warning is-light" role="alert" v-if="cveRecordsRequestErrored">
@@ -82,6 +82,12 @@ export default {
8282
8383
if ((typeof count === 'number') && !Number.isNaN(count)) {
8484
this.cveRecordsRequestErrored = false;
85+
86+
// As of March 2025, we're reporting the CVE record count rounded
87+
// to the next lowest thousand, and reporting it as "over xxx"
88+
// thousand records (a la McDonald's), instead of the actual count.
89+
90+
count = Math.floor(count / 1000) * 1000;
8591
this.cveRecordsTotal = count.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
8692
} else {
8793
this.cveRecordsRequestErrored = true;

0 commit comments

Comments
 (0)