Merge pull request #227 from StuffAnThings/develop

3.4.3
This commit is contained in:
bobokun 2023-02-13 21:22:41 -05:00 committed by GitHub
commit 465e922589
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 13 deletions

View file

@ -1 +1 @@
3.4.2 3.4.3

View file

@ -288,17 +288,18 @@ def nohardlink(file, notify):
) )
notify(msg, "nohardlink") notify(msg, "nohardlink")
logger.warning(msg) logger.warning(msg)
largest_file_size = os.stat(sorted_files[0]).st_size else:
logger.trace(f"Largest file: {sorted_files[0]}") largest_file_size = os.stat(sorted_files[0]).st_size
logger.trace(f"Largest file size: {largest_file_size}") logger.trace(f"Largest file: {sorted_files[0]}")
for x in sorted_files: logger.trace(f"Largest file size: {largest_file_size}")
file_size = os.stat(x).st_size for x in sorted_files:
file_no_hardlinks = os.stat(x).st_nlink file_size = os.stat(x).st_size
logger.trace(f"Checking file: {file}") file_no_hardlinks = os.stat(x).st_nlink
logger.trace(f"Checking file size: {file_size}") logger.trace(f"Checking file: {file}")
logger.trace(f"Checking no of hard links: {file_no_hardlinks}") logger.trace(f"Checking file size: {file_size}")
if file_no_hardlinks > 1 and file_size >= (largest_file_size * threshold): logger.trace(f"Checking no of hard links: {file_no_hardlinks}")
check = False if file_no_hardlinks > 1 and file_size >= (largest_file_size * threshold):
check = False
return check return check

View file

@ -1,6 +1,6 @@
flake8==6.0.0 flake8==6.0.0
pre-commit==2.20.0 pre-commit==2.20.0
qbittorrent-api==2022.11.40 qbittorrent-api==2023.2.42
requests==2.28.1 requests==2.28.1
retrying==1.3.4 retrying==1.3.4
ruamel.yaml==0.17.21 ruamel.yaml==0.17.21