Skip to content

IMA-10467 - Add converter from txt to JSON for appthinningreport#57

Closed
vshaweddy-cpi wants to merge 4 commits into
ChargePoint:masterfrom
vshaweddy-cpi:IMA-10467
Closed

IMA-10467 - Add converter from txt to JSON for appthinningreport#57
vshaweddy-cpi wants to merge 4 commits into
ChargePoint:masterfrom
vshaweddy-cpi:IMA-10467

Conversation

@vshaweddy-cpi

Copy link
Copy Markdown
Contributor

Change Description:
Convert app thinning report.txt to json file
Test Plan/Testing Performed:
Run using xcode

@vshaweddy-cpi

Copy link
Copy Markdown
Contributor Author

Scheme settings
Screen Shot 2021-04-06 at 12 03 22 PM

return "\(bytes) bytes"
case 1_024..<(1_024 * 1_024):
return "\(String(format: "%.2f", kilobytes)) kb"
case 1_024..<(1_024 * 1_024 * 1_024):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be 1_024*1_024

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The first condition 1_024..<(1_024 * 1_024) will force the third condition to be (1_024*1_024)..<(1_024 * 1_024 * 1_024). But I also update it to be more concise.

@rsukumar-cpi

Copy link
Copy Markdown
Contributor

Picked up these changes and created a new PR #73.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants