fix: typo for storage unit Go > GB #126

This commit is contained in:
Ravinou 2024-01-07 15:38:11 +01:00
parent 0c7d6f9290
commit c3271c33e6
No known key found for this signature in database
GPG key ID: EEEE670C40F6A4D7
4 changed files with 6 additions and 6 deletions

View file

@ -116,7 +116,7 @@ export default function Repo(props) {
<tbody>
<tr>
<th>{props.repositoryName}</th>
<th>{props.storageSize}Go</th>
<th>{props.storageSize} GB</th>
<th style={{ padding: '0 4% 0 4%' }}>
<StorageBar
storageUsed={props.storageUsed}

View file

@ -3,7 +3,7 @@ import classes from './StorageBar.module.css';
export default function StorageBar(props) {
//Var
//storageUsed is in octet, storageSize is in Go. Round to 1 decimal for %.
//storageUsed is in octet, storageSize is in GB. Round to 1 decimal for %.
const storageUsedPercent = (
((props.storageUsed / 1000000) * 100) /
props.storageSize
@ -23,8 +23,8 @@ export default function StorageBar(props) {
</div>
<div className={classes.tooltip}>
{storageUsedPercent}% (
{(props.storageUsed / 1000000).toFixed(1)}Go/
{props.storageSize}Go)
{(props.storageUsed / 1000000).toFixed(1)} GB /{' '}
{props.storageSize} GB)
</div>
</div>
</div>

View file

@ -78,7 +78,7 @@ export default function StorageUsedChartBar() {
datasets: [
{
label: 'Storage used (%)',
//storageUsed is in octet, storageSize is in Go. Round to 1 decimal for %.
//storageUsed is in octet, storageSize is in GB. Round to 1 decimal for %.
data: data.map((repo) =>
(
((repo.storageUsed / 1000000) * 100) /

View file

@ -384,7 +384,7 @@ export default function RepoManage(props) {
</span>
)}
{/* SIZE */}
<label htmlFor='size'>Storage Size (Go)</label>
<label htmlFor='size'>Storage Size (GB)</label>
<input
type='number'
min='1'