mirror of
https://github.com/d0zingcat/MoviePilot-Plugins.git
synced 2026-05-14 07:26:51 +00:00
fix bytes_to_gb
This commit is contained in:
@@ -3804,6 +3804,8 @@ class BrushFlow(_PluginBase):
|
||||
:param size_in_bytes: 文件大小,单位为字节。
|
||||
:return: 文件大小,单位为千兆字节(GB)。
|
||||
"""
|
||||
if not size_in_bytes:
|
||||
return 0.0
|
||||
return size_in_bytes / (1024 ** 3)
|
||||
|
||||
@staticmethod
|
||||
|
||||
Reference in New Issue
Block a user