🐛 fix(api): Statistics

This commit is contained in:
web@ppanel 2024-12-20 19:01:35 +07:00
parent 39d07ecee5
commit 79621623d5
2 changed files with 5 additions and 4 deletions

View File

@ -99,22 +99,22 @@ export default function Statistics() {
}, },
{ {
title: t('todayUploadTraffic'), title: t('todayUploadTraffic'),
value: formatBytes(ServerTotal?.upload_traffic_today || 0), value: formatBytes(ServerTotal?.today_upload || 0),
icon: 'uil:arrow-up', icon: 'uil:arrow-up',
}, },
{ {
title: t('todayDownloadTraffic'), title: t('todayDownloadTraffic'),
value: formatBytes(ServerTotal?.download_traffic_today || 0), value: formatBytes(ServerTotal?.today_download || 0),
icon: 'uil:arrow-down', icon: 'uil:arrow-down',
}, },
{ {
title: t('monthUploadTraffic'), title: t('monthUploadTraffic'),
value: formatBytes(ServerTotal?.upload_traffic_month || 0), value: formatBytes(ServerTotal?.monthly_upload || 0),
icon: 'uil:cloud-upload', icon: 'uil:cloud-upload',
}, },
{ {
title: t('monthDownloadTraffic'), title: t('monthDownloadTraffic'),
value: formatBytes(ServerTotal?.download_traffic_month || 0), value: formatBytes(ServerTotal?.monthly_download || 0),
icon: 'uil:cloud-download', icon: 'uil:cloud-download',
}, },
].map((item, index) => ( ].map((item, index) => (

View File

@ -720,6 +720,7 @@ declare namespace API {
server: number[]; server: number[];
show: boolean; show: boolean;
sell: boolean; sell: boolean;
sort: number;
created_at: number; created_at: number;
updated_at: number; updated_at: number;
}; };