aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/iomgr/ev_epollex_linux.c
diff options
context:
space:
mode:
authorGravatar Yash Tibrewal <yashkt@google.com>2017-09-18 15:10:22 -0700
committerGravatar Yash Tibrewal <yashkt@google.com>2017-09-18 15:42:41 -0700
commit06312bdb43c66150e59958479640913c3726ee10 (patch)
tree1308fc9cfbc3e62297e2c37d5ad25f1b6e716cc4 /src/core/lib/iomgr/ev_epollex_linux.c
parente203067bdcd9522446aa106ce77085c62a932c49 (diff)
Minor formatting, commenting and clang format for C to C++ conversion
Diffstat (limited to 'src/core/lib/iomgr/ev_epollex_linux.c')
-rw-r--r--src/core/lib/iomgr/ev_epollex_linux.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/lib/iomgr/ev_epollex_linux.c b/src/core/lib/iomgr/ev_epollex_linux.c
index 671c4cd730..cff0c07a2b 100644
--- a/src/core/lib/iomgr/ev_epollex_linux.c
+++ b/src/core/lib/iomgr/ev_epollex_linux.c
@@ -706,7 +706,11 @@ static int poll_deadline_to_millis_timeout(gpr_timespec deadline,
return 0;
}
- static const gpr_timespec round_up = {0, GPR_NS_PER_MS - 1, GPR_TIMESPAN};
+ static const gpr_timespec round_up = {
+ 0, /* tv_sec */
+ GPR_NS_PER_MS - 1, /* tv_nsec */
+ GPR_TIMESPAN /* clock_type */
+ };
timeout = gpr_time_sub(deadline, now);
int millis = gpr_time_to_millis(gpr_time_add(timeout, round_up));
return millis >= 1 ? millis : 1;