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>
);