Skip to content

Commit 9c7334d

Browse files
committed
Fix formatting issue
1 parent 8047815 commit 9c7334d

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

src/poll/timeval.cpp

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
#include "timeval.hpp"
22

3-
timeval operator-(timeval const &lhs, timeval const &rhs)
4-
{
5-
timeval result;
6-
result.tv_sec = lhs.tv_sec - rhs.tv_sec;
7-
result.tv_usec = lhs.tv_usec - rhs.tv_usec;
3+
timeval operator-(timeval const &lhs, timeval const &rhs) {
4+
timeval result;
5+
result.tv_sec = lhs.tv_sec - rhs.tv_sec;
6+
result.tv_usec = lhs.tv_usec - rhs.tv_usec;
87

9-
if (result.tv_usec < 0) {
10-
result.tv_sec -= 1;
11-
result.tv_usec += 1000000;
12-
}
13-
return result;
8+
if (result.tv_usec < 0) {
9+
result.tv_sec -= 1;
10+
result.tv_usec += 1000000;
11+
}
12+
return result;
1413
}

0 commit comments

Comments
 (0)