-
Couldn't load subscription status.
- Fork 2
bug rollup: legend appearance, recording size, supress splash screen when display CLI help [CPP-754][CPP-758][CPP-737] #565
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
Conversation
| recordingSize.text = bytesToString(recSize); | ||
| else | ||
| recordingSize.text = "0.00 MiB"; | ||
| recordingSize.text = "0.00 MB"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MiB and MB are slightly different right? are we currently recording MBs and this is fixing the label?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh I see this is just for the 0 bytes recorded case. either way looking at bytesToString const k = 1024 should probably be 1000 if we want MBs not MiBs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes this was just mislabelled, our calculation is converting to KB/MB/GB/etc:
swift-toolbox/resources/LoggingBar.qml
Line 247 in fe8d553
| const k = 1024; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah so I think it should be 1000 (https://en.wikipedia.org/wiki/Megabyte table on the left is without the "i"s and it's powers of 10 not 2)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But if the old console is doing 1024 and showing MBs maybe it's best just to forget about it hahaha
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, technically MiB is supposed to be 1024 and MB is supposed to be 1000-- but in common usage MB can mean 1024 or 1000 depending on context and the apps team's argument was that most "end users" are not going to know what MiB is and in our context, we want to use 1024, not 1000...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh makes sense
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I came here to say that MB is powers of 10 and MiB is powers of 2, as @silverjam mentioned.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like powers of 2 were used in the old console but with the naming convention of KB/MB. So I'll just keep it as is then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://devblogs.microsoft.com/oldnewthing/20090611-00/?p=17933
I suppose when Windows finally conforms to the standard, then we should too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, just needs a fixup for --version and -V
| recordingSize.text = bytesToString(recSize); | ||
| else | ||
| recordingSize.text = "0.00 MiB"; | ||
| recordingSize.text = "0.00 MB"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, technically MiB is supposed to be 1024 and MB is supposed to be 1000-- but in common usage MB can mean 1024 or 1000 depending on context and the apps team's argument was that most "end users" are not going to know what MiB is and in our context, we want to use 1024, not 1000...
29db7fa to
bc7a2fc
Compare
NOTE: These images dont show the corrected MiB -> MB, took them before adding the fix.