@@ -39,6 +39,20 @@ class Stats extends React.Component {
3939 const since = parseDate ( totals . since )
4040 const until = parseDate ( totals . until )
4141
42+ // Protocols
43+ const protocolRows = Object . keys ( totals . requests . protocol ) . sort ( ( a , b ) => {
44+ return totals . requests . protocol [ b ] - totals . requests . protocol [ a ]
45+ } ) . map ( protocol => {
46+ const requests = totals . requests . protocol [ protocol ]
47+
48+ return (
49+ < tr key = { protocol } >
50+ < td > { protocol } </ td >
51+ < td > { formatNumber ( requests ) } ({ formatPercent ( requests / sumValues ( totals . requests . protocol ) ) } %)</ td >
52+ </ tr >
53+ )
54+ } )
55+
4256 // Packages
4357 const packageRows = [ ]
4458
@@ -62,20 +76,6 @@ class Stats extends React.Component {
6276 }
6377 } )
6478
65- // Protocols
66- const protocolRows = Object . keys ( totals . requests . protocol ) . sort ( ( a , b ) => {
67- return totals . requests . protocol [ b ] - totals . requests . protocol [ a ]
68- } ) . map ( protocol => {
69- const requests = totals . requests . protocol [ protocol ]
70-
71- return (
72- < tr key = { protocol } >
73- < td > { protocol } </ td >
74- < td > { formatNumber ( requests ) } ({ formatPercent ( requests / sumValues ( totals . requests . protocol ) ) } %)</ td >
75- </ tr >
76- )
77- } )
78-
7979 // Regions
8080 const regionRows = [ ]
8181
@@ -162,7 +162,7 @@ class Stats extends React.Component {
162162 < option value = "10000" > 10,000</ option >
163163 < option value = "100000" > 100,000</ option >
164164 < option value = "1000000" > 1,000,000</ option >
165- < option value = "1000000 " > 10,000,000</ option >
165+ < option value = "10000000 " > 10,000,000</ option >
166166 </ select > requests.
167167 </ p >
168168
0 commit comments