mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
Merge branch 'main' into cloudflare
This commit is contained in:
commit
1ef3097058
@ -107,12 +107,14 @@ export default function ServerListClient() {
|
||||
: filteredServersByStatus.filter((server) => server.tag === tag);
|
||||
|
||||
if (filter) {
|
||||
// 根据使用速度进行从高到低排序
|
||||
filteredServers.sort((a, b) => {
|
||||
if (!a.online_status && b.online_status) return 1;
|
||||
if (a.online_status && !b.online_status) return -1;
|
||||
if (!a.online_status && !b.online_status) return 0;
|
||||
return (
|
||||
b.status.NetInSpeed +
|
||||
b.status.NetOutSpeed -
|
||||
(a.status.NetInSpeed + b.status.NetOutSpeed)
|
||||
(a.status.NetInSpeed + a.status.NetOutSpeed)
|
||||
);
|
||||
});
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "nezha-dash",
|
||||
"version": "1.6.7-fix",
|
||||
"version": "1.6.8",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev -p 3040",
|
||||
|
Loading…
Reference in New Issue
Block a user