mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-18 02:05:36 +00:00
fix: success rate in the stats page
This commit is contained in:
parent
39f607e95d
commit
ba7bd33ba1
@ -18,10 +18,8 @@ export default function StatisticsPage() {
|
||||
getStatistics().then(setStats)
|
||||
}, [])
|
||||
|
||||
const totalDomainPurchase = (stats?.domainPurchased ?? 0) + (stats?.domainPurchaseFailed ?? 0)
|
||||
|
||||
const successRate = stats !== undefined
|
||||
? (totalDomainPurchase === 0 ? undefined : stats.domainPurchased / totalDomainPurchase)
|
||||
? (stats?.domainPurchased === 0 ? undefined : ((stats?.domainPurchased ?? 0) - (stats?.domainPurchaseFailed ?? 0)) / stats?.domainPurchased)
|
||||
: undefined
|
||||
|
||||
return (
|
||||
|
||||
@ -191,7 +191,7 @@ msgid "Infrastructure"
|
||||
msgstr ""
|
||||
|
||||
#: assets/components/Sider.tsx:70
|
||||
#: assets/pages/StatisticsPage.tsx:114
|
||||
#: assets/pages/StatisticsPage.tsx:112
|
||||
#: assets/pages/infrastructure/TldPage.tsx:81
|
||||
msgid "TLD"
|
||||
msgstr ""
|
||||
@ -698,33 +698,33 @@ msgid ""
|
||||
"WHOIS by its registrar."
|
||||
msgstr ""
|
||||
|
||||
#: assets/pages/StatisticsPage.tsx:35
|
||||
#: assets/pages/StatisticsPage.tsx:33
|
||||
msgid "RDAP queries"
|
||||
msgstr ""
|
||||
|
||||
#: assets/pages/StatisticsPage.tsx:44
|
||||
#: assets/pages/StatisticsPage.tsx:42
|
||||
msgid "Alerts sent"
|
||||
msgstr ""
|
||||
|
||||
#: assets/pages/StatisticsPage.tsx:58
|
||||
#: assets/pages/StatisticsPage.tsx:56
|
||||
msgid "Domain names in database"
|
||||
msgstr ""
|
||||
|
||||
#: assets/pages/StatisticsPage.tsx:69
|
||||
#: assets/pages/StatisticsPage.tsx:67
|
||||
msgid "Tracked domain names"
|
||||
msgstr ""
|
||||
|
||||
#: assets/pages/StatisticsPage.tsx:83
|
||||
#: assets/pages/StatisticsPage.tsx:81
|
||||
msgid "Purchased domain names"
|
||||
msgstr ""
|
||||
|
||||
#: assets/pages/StatisticsPage.tsx:93
|
||||
#: assets/pages/StatisticsPage.tsx:91
|
||||
msgid ""
|
||||
"This value is based on the status code of the HTTP response from the "
|
||||
"providers following the domain order."
|
||||
msgstr ""
|
||||
|
||||
#: assets/pages/StatisticsPage.tsx:97
|
||||
#: assets/pages/StatisticsPage.tsx:95
|
||||
msgid "Success rate"
|
||||
msgstr ""
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user