mirror of
https://github.com/Ravinou/borgwarehouse
synced 2024-05-19 14:06:38 +02:00
fix: typo for storage unit Go > GB #126
This commit is contained in:
parent
0c7d6f9290
commit
c3271c33e6
|
@ -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}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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) /
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue