folly: fix initialization for CLOCK_PROCESS_CPUTIME_ID emulation on macOS
authorWez Furlong <wez@fb.com>
Sun, 17 Jul 2016 06:02:32 +0000 (23:02 -0700)
committerFacebook Github Bot 2 <facebook-github-bot-2-bot@fb.com>
Sun, 17 Jul 2016 06:08:26 +0000 (23:08 -0700)
commit4592f5e8e11ae6a5c3443b55ba5edb0425c5f019
tree209e40269fbafb1010ae85b165035629552e5ef5
parent92fd1080ccc6b1d74def6fe4fe85dbafa2d38fc6
folly: fix initialization for CLOCK_PROCESS_CPUTIME_ID emulation on macOS

Summary:
this fixes TimeTest on macOS.

The problem was that `task_info_count` is an in/out parameter and it wasn't correctly initialized due to a typo.  The lack of initialization meant that the `task_info()` call would fail at runtime.

Reviewed By: yfeldblum

Differential Revision: D3576262

fbshipit-source-id: 8388fa3c5020309d64a0fa7e01fd6cea80200219
folly/portability/Time.cpp