Combining install scripts into a new repair script. Removing create_db script in favor of repair script.

This commit is contained in:
Roland 2023-09-24 20:10:09 -06:00
parent b817534c37
commit 6e0f9a999c
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
57 changed files with 785 additions and 724 deletions

View file

@ -143,7 +143,7 @@ export function CPUUsageProgress({percent, label}) {
export function MemoryUsageProgress({percent, label}) {
if (percent === null) {
return <Progress progress={0} color='grey' label='Memory Usage' disabled/>
return <Progress progress={0} color='grey' label='RAM Usage' disabled/>
}
let color = 'black';
@ -176,6 +176,7 @@ export function StatusPage() {
let drives = [];
let disk_bandwidth = [];
let memoryPercent;
let memorySize;
if (status && status['cpu_info']) {
const {cpu_info, load, memory_stats} = status;
@ -194,6 +195,7 @@ export function StatusPage() {
disk_bandwidth = status['disk_bandwidth'];
memoryPercent = Math.round(memory_stats['used'] / memory_stats['total'] * 100);
memorySize = humanFileSize(memory_stats['total'], 0);
}
const SizedHeader = ({children}) => {
@ -203,11 +205,14 @@ export function StatusPage() {
</div>
}
const cpuProgress = <CPUUsageProgress percent={percent} label={`CPU Usage (${cores} cores)`}/>;
const memoryUsageProgress = <MemoryUsageProgress percent={memoryPercent} label={`RAM Usage (${memorySize})`}/>;
return <>
<Media at='mobile'>
<Segment>
<CPUUsageProgress percent={percent} label='CPU Usage'/>
<MemoryUsageProgress percent={memoryPercent} label='RAM Usage'/>
{cpuProgress}
{memoryUsageProgress}
<StatisticGroup>
<CPUTemperatureStatistic
temperature={temperature}
@ -222,8 +227,8 @@ export function StatusPage() {
</Media>
<Media greaterThanOrEqual='tablet'>
<Segment>
<CPUUsageProgress percent={percent} label='CPU Usage'/>
<MemoryUsageProgress percent={memoryPercent} label='RAM Usage'/>
{cpuProgress}
{memoryUsageProgress}
<StatisticGroup size='mini'>
<CPUTemperatureStatistic
temperature={temperature}