diff options
author | thinkerou <thinkerou@gmail.com> | 2016-07-09 10:40:44 +0800 |
---|---|---|
committer | thinkerou <thinkerou@gmail.com> | 2016-07-09 10:40:44 +0800 |
commit | b433830d1ab91e45a29e08d79efe766015157e7c (patch) | |
tree | 088870a2dca97ebff8804515043590528780b718 /src/core/lib | |
parent | 614e6f9e58c28c1c8012622bd3af7449fda3f55e (diff) |
Fixed code format
Diffstat (limited to 'src/core/lib')
-rw-r--r-- | src/core/lib/support/time.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/lib/support/time.c b/src/core/lib/support/time.c index bc0a9afc15..5a7d043aed 100644 --- a/src/core/lib/support/time.c +++ b/src/core/lib/support/time.c @@ -92,8 +92,9 @@ static gpr_timespec to_seconds_from_sub_second_time(int64_t time_in_units, if (time_in_units >= 0) { out.tv_sec = time_in_units / units_per_sec; } else { - out.tv_sec = (-((units_per_sec - 1) - - (time_in_units + units_per_sec)) / units_per_sec) - 1; + out.tv_sec = (-((units_per_sec - 1) - (time_in_units + units_per_sec)) / + units_per_sec) - + 1; } out.tv_nsec = (int32_t)((time_in_units - out.tv_sec * units_per_sec) * GPR_NS_PER_SEC / units_per_sec); |