diff options
Diffstat (limited to 'includes/maintenance/clearUnused.php')
-rw-r--r-- | includes/maintenance/clearUnused.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/maintenance/clearUnused.php b/includes/maintenance/clearUnused.php index 99b6ca4..499375b 100644 --- a/includes/maintenance/clearUnused.php +++ b/includes/maintenance/clearUnused.php @@ -12,16 +12,16 @@ foreach (array_filter(scandir($_SERVER['DOCUMENT_ROOT'] . "/includes/data/metada $bits = str_split(substr(str_repeat("0", 48), 0, 48 - strlen(decbin($data["bitset"]))) . decbin($data["bitset"])); echo(" Old:\n"); echo(" " . str_replace("+", "\e[92m1\e[39m", str_replace("-", "\e[31m0\e[39m", implode("", str_replace("0", "-", str_replace("1", "+", $bits))))) . "\n"); - echo(" XXXXXXXXXX X XXXXXX X XX XXXX X\n"); + echo(" XX \n"); $bitsOld = implode("", $bits); - foreach ([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 18, 19, 20, 21, 22, 23, 26, 31, 32, 41, 42, 43, 44, 47] as $bit) { + foreach ([27, 28] as $bit) { $bits[$bit] = "0"; } echo(" New:\n"); echo(" " . str_replace("+", "\e[92m1\e[39m", str_replace("-", "\e[31m0\e[39m", implode("", str_replace("0", "-", str_replace("1", "+", $bits))))) . "\n"); - echo(" XXXXXXXXXX X XXXXXX X XX XXXX X\n"); + echo(" XX \n"); echo(" Changed " . levenshtein($bitsOld, implode("", $bits)) . " bit(s)\n"); echo(" Backup made in " . substr($file, 0, -5) . "-old.json\n"); |