[roll] Roll fuchsia [settings][policy] Return early during calculating external volume if dividing by zero

Adds an early return to prevent passing NaN into the round function. At
the moment the code works due to max picking 0 over NaN, but best to
handle this explicitly so that this won't break if the round function
changes. Also adds a test case for this edge case.

Original-Fixed: 70760
Test: fx test setui_service_tests
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/490009
Original-Revision: 8d0f78f0cc257077217589727833d35ae6e87730
GitOrigin-RevId: 20aaeaf03e3c9fcb7ff0092e5d8b01bc6931b70b
Change-Id: I03830355709c514e17e468cd78f3b9a0c069b2ba
1 file changed
tree: 9a80196a10a1ec8f5851bcb1b033a8b3454e7732
  1. garnet/
  2. infra/
  3. peridot/
  4. third_party/
  5. topaz/
  6. zircon/
  7. flower
  8. jiri.lock
  9. minimal
  10. prebuilts
  11. README.md
  12. stem
  13. test_durations
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance via the IRC channel #fuchsia on Freenode.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.