Reduce space wastage

This commit is contained in:
2024-04-10 18:35:51 +02:00
parent 8900c44e51
commit f69389c461
10 changed files with 27 additions and 63 deletions

View File

@@ -94,7 +94,9 @@ const get_page = async (url) => {
v.method === "paypal" &&
v.status === "paid" &&
(new Date(v.createdAt)) > startDate &&
(new Date(v.createdAt)) < endDate
(new Date(v.createdAt)) < endDate &&
(v.amountRefunded === undefined || v.amountRefunded.value === "0.00") &&
(v.amountChargedBack === undefined || v.amountChargedBack.value === "0.00")
) {
payments.push(v)
added++

View File

@@ -78,7 +78,7 @@ let sort = (field) => {
<td>{peer.address}</td>
<td>{peer.unreachable_count}</td>
<td>{peer.load_1_min.toFixed(1)} / {peer.load_5_min.toFixed(1)} / {peer.load_15_min.toFixed(1)}</td>
<td>{(peer.latency/1000).toPrecision(3)}</td>
<td>{(peer.latency/1000).toFixed(3)}</td>
<td>{formatDataVolume(peer.avg_network_tx, 3)}/s</td>
<td>{formatDataVolume(peer.avg_network_rx, 3)}/s</td>
<td>{peer.network_ratio.toFixed(2)}</td>

View File

@@ -18,7 +18,10 @@ export let sort_func
<style>
button {
display: block;
margin: 0;
line-height: 1em;
width: 100%;
text-align: center;
}
</style>