@@ -33,7 +33,7 @@ const AccordionItem = ({ instanceScore, orchObj, instanceObj, startExpanded }) =
33
33
< span className = "accordion-icon" > { isExpanded ? "-" : "+" } </ span >
34
34
</ div >
35
35
{ isExpanded && (
36
- < div className = "accordion-expanded-details" style = { { marginTop : "5px" } } >
36
+ < div className = "accordion-expanded-details" style = { { marginTop : "5px" } } >
37
37
< strong > { orchObj . id } </ strong >
38
38
< div className = "accordion-item-row" >
39
39
< span className = "item-key" > Last Ping:</ span >
@@ -57,11 +57,11 @@ const AccordionItem = ({ instanceScore, orchObj, instanceObj, startExpanded }) =
57
57
< div className = "accordion-section-title" > Instance Stats:</ div >
58
58
< div className = "accordion-item-row" >
59
59
< span className = "item-key" > Discovery Time:</ span >
60
- < span className = "item-value" > { instanceObj . bestDiscoveryTime . toPrecision ( 3 ) } ms</ span >
60
+ < span className = "item-value" > { instanceObj . bestDiscoveryTime < 1000 ? instanceObj . bestDiscoveryTime . toPrecision ( 3 ) : instanceObj . bestDiscoveryTime . toFixed ( 0 ) } ms</ span >
61
61
</ div >
62
62
< div className = "accordion-item-row" >
63
63
< span className = "item-key" > Price:</ span >
64
- < span className = "item-value" > { instanceObj . price . toPrecision ( 3 ) } PPP</ span >
64
+ < span className = "item-value" > { instanceObj . price < 1000 ? instanceObj . price . toPrecision ( 3 ) : instanceObj . price . toFixed ( 0 ) } PPP</ span >
65
65
</ div >
66
66
< div className = "accordion-item-row" >
67
67
< span className = "item-key" > RTRatio:</ span >
@@ -75,11 +75,11 @@ const AccordionItem = ({ instanceScore, orchObj, instanceObj, startExpanded }) =
75
75
< div className = "accordion-section-title" > Orchestrator averages:</ div >
76
76
< div className = "accordion-item-row" >
77
77
< span className = "item-key" > Discovery Time:</ span >
78
- < span className = "item-value" > { orchObj . avgDiscoveryTime . toPrecision ( 3 ) } ms</ span >
78
+ < span className = "item-value" > { orchObj . avgDiscoveryTime < 1000 ? orchObj . avgDiscoveryTime . toPrecision ( 3 ) : orchObj . avgDiscoveryTime . toFixed ( 0 ) } ms</ span >
79
79
</ div >
80
80
< div className = "accordion-item-row" >
81
81
< span className = "item-key" > Price:</ span >
82
- < span className = "item-value" > { orchObj . avgPrice . toPrecision ( 3 ) } PPP</ span >
82
+ < span className = "item-value" > { orchObj . avgPrice < 1000 ? orchObj . avgPrice . toPrecision ( 3 ) : orchObj . avgPrice . toFixed ( 0 ) } PPP</ span >
83
83
</ div >
84
84
< div className = "accordion-item-row" >
85
85
< span className = "item-key" > RTRatio:</ span >
0 commit comments