Merge pull request #2071 from Sir3lit/serverviewchanges

Change to BytesToHuman on server view for limits, to match index page. Changes to CPU/Memory Graph
This commit is contained in:
Dane Everitt 2020-05-28 19:04:19 -07:00 committed by GitHub
commit 1f943d957a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -112,7 +112,7 @@ export default () => {
className={'mr-1'}
/>
 {bytesToHuman(memory)}
<span className={'text-neutral-500'}> / {server.limits.memory} MB</span>
<span className={'text-neutral-500'}> / {bytesToHuman(server.limits.memory * 1000 * 1000)}</span>
</p>
<p className={'text-xs mt-2'}>
<FontAwesomeIcon
@ -121,7 +121,7 @@ export default () => {
className={'mr-1'}
/>
&nbsp;{bytesToHuman(disk)}
<span className={'text-neutral-500'}> / {server.limits.disk} MB</span>
<span className={'text-neutral-500'}> / {bytesToHuman(server.limits.disk * 1000 * 1000)}</span>
</p>
</TitledGreyBox>
{!server.isInstalling ?

View File

@ -17,14 +17,14 @@ const chartDefaults: ChartConfiguration = {
enabled: false,
},
animation: {
duration: 250,
duration: 0,
},
elements: {
point: {
radius: 0,
},
line: {
tension: 0.1,
tension: 0.3,
backgroundColor: 'rgba(15, 178, 184, 0.45)',
borderColor: '#32D0D9',
},