-
-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make beautifyFileSize public #971
Conversation
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## main #971 +/- ##
=======================================
Coverage 38.87% 38.87%
=======================================
Files 56 56
Lines 3974 3974
Branches 2187 2187
=======================================
Hits 1545 1545
Misses 1097 1097
Partials 1332 1332
☔ View full report in Codecov by Sentry. |
@juuz0 Not sure this function is documented properly (in readtjedocs), please add the necessary documentation. |
It will be documented this way : https://libkiwix--971.org.readthedocs.build/en/971/api/function_tools_8h_1a18e272a0e35c09646b78f566e92ac292.html |
@mgautierfr actually not bad. LGTM if the number given is not expected to be in a specific unity (bytes for example)... because this is not written in the doc. |
The name of the function is |
@mgautierfr If the result is given with a unity, then the unity of the input expected should be specified in the documentaiton. Here I guess Bytes. Otherwise, all good. |
b5232d1
to
88ec815
Compare
@kelson42 updated the description |
This general function will be useful in other kiwix apps
Requirement for kiwix/kiwix-desktop#946