From beb2843a9b51d606398a1ef34cfc960382dca2ba Mon Sep 17 00:00:00 2001 From: Crited Date: Thu, 31 Oct 2019 09:43:13 +0100 Subject: [PATCH] Convert-Bytes returns hash with former and current unit --- lib/core/tools/Convert-Bytes.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/tools/Convert-Bytes.psm1 b/lib/core/tools/Convert-Bytes.psm1 index 2799f18..421b8a5 100644 --- a/lib/core/tools/Convert-Bytes.psm1 +++ b/lib/core/tools/Convert-Bytes.psm1 @@ -34,7 +34,7 @@ function Convert-Bytes() } } } - return $FinalValue; + return @{'value' = $FinalValue; 'pastunit' = $CurrentUnit; 'endunit' = $Unit}; } Throw 'Invalid input'; } \ No newline at end of file