aboutsummaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-02-27 07:10:14 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-02-27 07:10:14 +0000
commitcc216f9aae241c2a4407a1d8253909b307df90bb (patch)
tree19d562d636600e0d8ab66133bd4584b8fbd1ad60 /thread.c
parent057098bfdcdbdc5bbd26fb51a7f8a37e6f8a2547 (diff)
downloadruby-cc216f9aae241c2a4407a1d8253909b307df90bb.tar.gz
adjust indent and style
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/thread.c b/thread.c
index 43fec8ace1..0b52cbd127 100644
--- a/thread.c
+++ b/thread.c
@@ -1013,7 +1013,8 @@ getclockofday(struct timeval *tp)
if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0) {
tp->tv_sec = ts.tv_sec;
tp->tv_usec = ts.tv_nsec / 1000;
- } else
+ }
+ else
#endif
{
gettimeofday(tp, NULL);
@@ -1084,7 +1085,8 @@ timeofday(void)
if (clock_gettime(CLOCK_MONOTONIC, &tp) == 0) {
return (double)tp.tv_sec + (double)tp.tv_nsec * 1e-9;
- } else
+ }
+ else
#endif
{
struct timeval tv;