1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-25 10:32:31 +01:00

fix: use correct network stat (#4175)

This commit is contained in:
Boy132 2022-06-28 00:30:21 +02:00 committed by GitHub
parent 63cf6ee96e
commit ac997cd7a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,9 +121,9 @@ const ServerDetailsBlock = ({ className }: { className?: string }) => {
<StatBlock
icon={faCloudDownloadAlt}
title={'Network (Inbound)'}
description={'The total amount of network traffic that your server has recieved since it was started.'}
description={'The total amount of network traffic that your server has received since it was started.'}
>
{status === 'offline' ? <span className={'text-gray-400'}>Offline</span> : bytesToString(stats.tx)}
{status === 'offline' ? <span className={'text-gray-400'}>Offline</span> : bytesToString(stats.rx)}
</StatBlock>
<StatBlock
icon={faCloudUploadAlt}
@ -132,7 +132,7 @@ const ServerDetailsBlock = ({ className }: { className?: string }) => {
'The total amount of traffic your server has sent across the internet since it was started.'
}
>
{status === 'offline' ? <span className={'text-gray-400'}>Offline</span> : bytesToString(stats.rx)}
{status === 'offline' ? <span className={'text-gray-400'}>Offline</span> : bytesToString(stats.tx)}
</StatBlock>
</div>
);