mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 07:10:15 -05:00
Fixed Code Styling
This commit is contained in:
parent
2e1cf839da
commit
b8cf37f713
1 changed files with 4 additions and 4 deletions
|
|
@ -52,7 +52,7 @@ function ConvertTo-MegaByte()
|
||||||
[string]$Unit
|
[string]$Unit
|
||||||
);
|
);
|
||||||
|
|
||||||
switch($Unit) {
|
switch ($Unit) {
|
||||||
{ 'B', 'Byte' -contains $_ } { $result = ($Value / [math]::Pow(10, 6)); $boolOption = $true; }
|
{ 'B', 'Byte' -contains $_ } { $result = ($Value / [math]::Pow(10, 6)); $boolOption = $true; }
|
||||||
{ 'KB', 'KiloByte' -contains $_ } { $result = ($Value / [math]::Pow(10, 3)); $boolOption = $true; }
|
{ 'KB', 'KiloByte' -contains $_ } { $result = ($Value / [math]::Pow(10, 3)); $boolOption = $true; }
|
||||||
{ 'MB', 'MegaByte' -contains $_ } { $result = $Value; $boolOption = $true; }
|
{ 'MB', 'MegaByte' -contains $_ } { $result = $Value; $boolOption = $true; }
|
||||||
|
|
@ -76,7 +76,7 @@ function ConvertTo-GigaByte()
|
||||||
[string]$Unit
|
[string]$Unit
|
||||||
);
|
);
|
||||||
|
|
||||||
switch($Unit) {
|
switch ($Unit) {
|
||||||
{ 'B', 'Byte' -contains $_ } { $result = ($Value / [math]::Pow(10, 9)); $boolOption = $true; }
|
{ 'B', 'Byte' -contains $_ } { $result = ($Value / [math]::Pow(10, 9)); $boolOption = $true; }
|
||||||
{ 'KB', 'KiloByte' -contains $_ } { $result = ($Value / [math]::Pow(10, 6)); $boolOption = $true; }
|
{ 'KB', 'KiloByte' -contains $_ } { $result = ($Value / [math]::Pow(10, 6)); $boolOption = $true; }
|
||||||
{ 'MB', 'MegaByte' -contains $_ } { $result = ($Value / [math]::Pow(10, 3)); $boolOption = $true; }
|
{ 'MB', 'MegaByte' -contains $_ } { $result = ($Value / [math]::Pow(10, 3)); $boolOption = $true; }
|
||||||
|
|
@ -100,7 +100,7 @@ function ConvertTo-TeraByte()
|
||||||
[string]$Unit
|
[string]$Unit
|
||||||
);
|
);
|
||||||
|
|
||||||
switch($Unit) {
|
switch ($Unit) {
|
||||||
{ 'B', 'Byte' -contains $_ } { $result = ($Value / [math]::Pow(10, 12)); $boolOption = $true; }
|
{ 'B', 'Byte' -contains $_ } { $result = ($Value / [math]::Pow(10, 12)); $boolOption = $true; }
|
||||||
{ 'KB', 'KiloByte' -contains $_ } { $result = ($Value / [math]::Pow(10, 9)); $boolOption = $true; }
|
{ 'KB', 'KiloByte' -contains $_ } { $result = ($Value / [math]::Pow(10, 9)); $boolOption = $true; }
|
||||||
{ 'MB', 'MegaByte' -contains $_ } { $result = ($Value / [math]::Pow(10, 6)); $boolOption = $true; }
|
{ 'MB', 'MegaByte' -contains $_ } { $result = ($Value / [math]::Pow(10, 6)); $boolOption = $true; }
|
||||||
|
|
@ -124,7 +124,7 @@ function ConvertTo-PetaByte()
|
||||||
[string]$Unit
|
[string]$Unit
|
||||||
);
|
);
|
||||||
|
|
||||||
switch($Unit) {
|
switch ($Unit) {
|
||||||
{ 'B', 'Byte' -contains $_ } { $result = ($Value / [math]::Pow(10, 15)); $boolOption = $true; }
|
{ 'B', 'Byte' -contains $_ } { $result = ($Value / [math]::Pow(10, 15)); $boolOption = $true; }
|
||||||
{ 'KB', 'KiloByte' -contains $_ } { $result = ($Value / [math]::Pow(10, 12)); $boolOption = $true; }
|
{ 'KB', 'KiloByte' -contains $_ } { $result = ($Value / [math]::Pow(10, 12)); $boolOption = $true; }
|
||||||
{ 'MB', 'MegaByte' -contains $_ } { $result = ($Value / [math]::Pow(10, 9)); $boolOption = $true; }
|
{ 'MB', 'MegaByte' -contains $_ } { $result = ($Value / [math]::Pow(10, 9)); $boolOption = $true; }
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue