Skip to content

Commit abb97e1

Browse files
committed
Updated some scripts
1 parent 1e227f3 commit abb97e1

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

scripts/check-cpu.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function GetCPUTemperature {
4242
}
4343

4444
try {
45-
Write-Progress "Querying CPU status... "
45+
Write-Progress "Querying the CPU status... "
4646
$status = ""
4747
$arch = GetCPUArchitecture
4848
if ($IsLinux) {

scripts/check-drives.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
Specifies the minimum warning level (10 GB by default)
88
.EXAMPLE
99
PS> ./check-drives.ps1
10-
✅ Drive C: uses 49%, 512GB free of 1TB
11-
✅ Drive D: uses 84%, 641GB free of 4TB
10+
✅ Drive C: uses 49% of 1TB · 512GB free
11+
✅ Drive D: uses 84% of 4TB · 641GB free
1212
.LINK
1313
https://github.com/fleschutz/PowerShell
1414
.NOTES
@@ -51,7 +51,7 @@ try {
5151
Write-Host "⚠️ Drive $name with $(Bytes2String $total) is nearly full, $(Bytes2String $free) free"
5252
} else {
5353
[int]$percent = ($used * 100) / $total
54-
Write-Host "✅ Drive $name uses $percent%, $(Bytes2String $free) free of $(Bytes2String $total)"
54+
Write-Host "✅ Drive $name uses $percent% of $(Bytes2String $total) · $(Bytes2String $free) free"
5555
}
5656
}
5757
exit 0 # success

scripts/check-hardware.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
& "$PSScriptRoot/check-ram.ps1"
2222
& "$PSScriptRoot/check-gpu.ps1"
2323
& "$PSScriptRoot/check-smart-devices.ps1"
24-
& "$PSScriptRoot/check-drives.ps1"
2524
& "$PSScriptRoot/check-power.ps1"
25+
& "$PSScriptRoot/check-drives.ps1"
2626
exit 0 # success

scripts/check-swap-space.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Specifies the minimum level in GB (10 GB by default)
88
.EXAMPLE
99
PS> ./check-swap-space.ps1
10-
✅ Swap space uses 42%, 748MB free of 1GB
10+
✅ Swap space uses 42% of 1GB · 748MB free
1111
.LINK
1212
https://github.com/fleschutz/PowerShell
1313
.NOTES
@@ -53,7 +53,7 @@ try {
5353
Write-Output "✅ Swap space unused, $(MB2String $Free) free"
5454
} else {
5555
[int]$Percent = ($Used * 100) / $Total
56-
Write-Output "✅ Swap space uses $Percent%, $(MB2String $Free) free of $(MB2String $Total)"
56+
Write-Output "✅ Swap space uses $Percent% of $(MB2String $Total) · $(MB2String $Free) free"
5757
}
5858
exit 0 # success
5959
} catch {

0 commit comments

Comments
 (0)