Skip to content

Commit

Permalink
fix: clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
feelfreelinux committed Jan 20, 2024
1 parent 8aee7ae commit abf0256
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion main/io/include/TCPSocket.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ class TCPSocket : public bell::Socket {
#endif
return value;
}
bool isOpen() { return !isClosed; }
bool isOpen() {
return !isClosed;
}

void close() {
if (!isClosed) {
Expand Down
4 changes: 3 additions & 1 deletion main/utilities/include/BellUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ struct tv {
int32_t sec;
int32_t usec;

int64_t ms() { return (sec * (int64_t)1000) + (usec / 1000); }
int64_t ms() {
return (sec * (int64_t)1000) + (usec / 1000);
}

tv operator+(const tv& other) const {
tv result(*this);
Expand Down

0 comments on commit abf0256

Please sign in to comment.