[Groonga-commit] groonga/groonga [master] Fixed grn_timeval_now() with HAVE_CLOCK_GETTIME.

Back to archive index

null+****@clear***** null+****@clear*****
2010年 9月 27日 (月) 17:06:57 JST


Tasuku SUENAGA a.k.a. gunyarakun	2010-09-27 08:06:57 +0000 (Mon, 27 Sep 2010)

  New Revision: 8937e6c3b96b643514576340bd7d16bd932ad720

  Log:
    Fixed grn_timeval_now() with HAVE_CLOCK_GETTIME.

  Modified files:
    lib/ctx.c

  Modified: lib/ctx.c (+1 -1)
===================================================================
--- lib/ctx.c    2010-09-27 05:10:17 +0000 (80adc9d)
+++ lib/ctx.c    2010-09-27 08:06:57 +0000 (d4122ad)
@@ -64,7 +64,7 @@ grn_timeval_now(grn_ctx *ctx, grn_timeval *tv)
 {
 #ifdef HAVE_CLOCK_GETTIME
   struct timespec t;
-  if (clock_gettime(CLOCK_MONOTONIC, &t)) {
+  if (clock_gettime(CLOCK_REALTIME, &t)) {
     SERR("clock_gettime");
   } else {
     tv->tv_sec = (int32_t) t.tv_sec;




Groonga-commit メーリングリストの案内
Back to archive index