rsync icon indicating copy to clipboard operation
rsync copied to clipboard

human-readable: calculate numbers in a loop

Open eworm-de opened this issue 7 months ago • 8 comments

This drops a lot of else if blocks and extends units by "E", "Z" & "Y".

eworm-de avatar Apr 15 '26 18:04 eworm-de

Ismail

iliruci23-hue avatar Apr 22 '26 19:04 iliruci23-hue

Updated - here, and in #459 with some additional changes.

eworm-de avatar Jun 06 '26 09:06 eworm-de

Ah, yes... Unlikely to hit this 😁️ - but you are right.

But it should be fine when using an unsinged data type? Switched to uint64_t.

I would like to keep the variable, as a follow-up commit (currently in 61802acbff8d02c30ebdf06dcf3d7ff28d8b0f27) re-uses it.

eworm-de avatar Jun 06 '26 14:06 eworm-de

I did not want to say that the case is irrelevant, we should definitely get this right. I just wanted to explain why my mind did not came up with this. 😉️

Same for the overflow in calculation - I was not aware of this.

Updated again, I hope it is ok now. Thanks a lot for the detailed review!

eworm-de avatar Jun 07 '26 08:06 eworm-de

@tridge Could you review and merge when available, cheers mate!

steadytao avatar Jun 07 '26 08:06 steadytao

@eworm-de I will also have a more thorough look at 459 within the next 24-48 hours, thank you for your work thus far.

steadytao avatar Jun 07 '26 08:06 steadytao

Thanks a lot, and you are welcome!

Let me know if you want #459 to be split into smaller pull requests for review.

eworm-de avatar Jun 07 '26 08:06 eworm-de

Let me know if you want #459 to be split into smaller pull requests for review.

It's small enough, that'll be fine.

steadytao avatar Jun 07 '26 08:06 steadytao