mirror of
				https://github.com/9001/copyparty.git
				synced 2025-10-31 12:43:13 -06:00 
			
		
		
		
	diskfree without root-reserved space (#285)
Signed-off-by: Jo <141064017+Arklaum@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									4988a55ea5
								
							
						
					
					
						commit
						c3cc2ddeae
					
				|  | @ -2684,7 +2684,7 @@ def get_df(abspath: str, prune: bool) -> tuple[int, int, str]: | ||||||
|             return (bavail.value, btotal.value, "") |             return (bavail.value, btotal.value, "") | ||||||
|         else: |         else: | ||||||
|             sv = os.statvfs(ap) |             sv = os.statvfs(ap) | ||||||
|             free = sv.f_frsize * sv.f_bfree |             free = sv.f_frsize * sv.f_bavail | ||||||
|             total = sv.f_frsize * sv.f_blocks |             total = sv.f_frsize * sv.f_blocks | ||||||
|             return (free, total, "") |             return (free, total, "") | ||||||
|     except Exception as ex: |     except Exception as ex: | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue