File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ function GetCPUTemperature {
42
42
}
43
43
44
44
try {
45
- Write-Progress " Querying CPU status... "
45
+ Write-Progress " Querying the CPU status... "
46
46
$status = " ✅"
47
47
$arch = GetCPUArchitecture
48
48
if ($IsLinux ) {
Original file line number Diff line number Diff line change 7
7
Specifies the minimum warning level (10 GB by default)
8
8
. EXAMPLE
9
9
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
12
12
. LINK
13
13
https://github.com/fleschutz/PowerShell
14
14
. NOTES
51
51
Write-Host " ⚠️ Drive $name with $ ( Bytes2String $total ) is nearly full, $ ( Bytes2String $free ) free"
52
52
} else {
53
53
[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 "
55
55
}
56
56
}
57
57
exit 0 # success
Original file line number Diff line number Diff line change 21
21
& " $PSScriptRoot /check-ram.ps1"
22
22
& " $PSScriptRoot /check-gpu.ps1"
23
23
& " $PSScriptRoot /check-smart-devices.ps1"
24
- & " $PSScriptRoot /check-drives.ps1"
25
24
& " $PSScriptRoot /check-power.ps1"
25
+ & " $PSScriptRoot /check-drives.ps1"
26
26
exit 0 # success
Original file line number Diff line number Diff line change 7
7
Specifies the minimum level in GB (10 GB by default)
8
8
. EXAMPLE
9
9
PS> ./check-swap-space.ps1
10
- ✅ Swap space uses 42%, 748MB free of 1GB
10
+ ✅ Swap space uses 42% of 1GB · 748MB free
11
11
. LINK
12
12
https://github.com/fleschutz/PowerShell
13
13
. NOTES
53
53
Write-Output " ✅ Swap space unused, $ ( MB2String $Free ) free"
54
54
} else {
55
55
[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 "
57
57
}
58
58
exit 0 # success
59
59
} catch {
You can’t perform that action at this time.
0 commit comments