Explorar o código

Offline check: fix block thresholds

Stephen Dade %!s(int64=5) %!d(string=hai) anos
pai
achega
52646dbdbd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      offline_check.py

+ 1 - 1
offline_check.py

@@ -101,7 +101,7 @@ if __name__ == '__main__':
                     total_blocks = int(len(tile) / IO_BLOCK_SIZE)
                 else:
                     print("Bad file size: {0}. {1} extra bytes at end".format(file, len(tile), len(tile) % IO_BLOCK_SIZE))
-                if total_blocks > 4000 or total_blocks < 1000:
+                if total_blocks > 6000 or total_blocks < 900:
                     print(file)
                     print("Error: Has {0} blocks".format(total_blocks))
                 # 2b. Does each block have the correct CRC and fields?