From a74a0e2be9a9c8ab2f601582f05a83914bfd3357 Mon Sep 17 00:00:00 2001 From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch> Date: Wed, 20 Dec 2017 16:49:52 +0100 Subject: [PATCH] Fix bug where dir size was reported in Bytes instead of Megabytes. Refers to #1 --- AutoTx/AutoTx.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AutoTx/AutoTx.cs b/AutoTx/AutoTx.cs index dcebf6d..a334656 100644 --- a/AutoTx/AutoTx.cs +++ b/AutoTx/AutoTx.cs @@ -964,7 +964,7 @@ namespace AutoTx continue; long size = -1; try { - size = GetDirectorySize(subdir.FullName); + size = GetDirectorySize(subdir.FullName) / MegaBytes; } catch (Exception ex) { writeLog("ERROR getting directory size of " + subdir.FullName + -- GitLab