mirror of
https://github.com/007revad/Synology_HDD_db.git
synced 2026-04-25 13:45:59 +03:00
[GH-ISSUE #368] get_size_gb() calculation error for 20GB HDDs #839
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Synology_HDD_db#839
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @planetrocky on GitHub (Oct 19, 2024).
Original GitHub issue: https://github.com/007revad/Synology_HDD_db/issues/368
syno_hdd_db.shwrites 19999 to the drive database:GiB to GB:
2^30 / 1e9 = 1.073741824
Line 897 of
syno_hdd_db.shupdateget_size_gb()function for correct calculation. Tested with all my HDDs and SSDs (smallest 1GB, largest 20GB):@planetrocky commented on GitHub (Oct 19, 2024):
#369
@007revad commented on GitHub (Oct 19, 2024):
Thanks. I like when people find a bug and provide the solution :)