Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

simpleleveldb: ridiculous contortions to appease code style script wh…

…ile manually aligning this calculation
  • Loading branch information...
commit ba1592de906addae38fe75c0e372cc902a2198b8 1 parent 94b903f
Pierce Lopez authored April 11, 2012

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  simpleleveldb/simpleleveldb.c
4  simpleleveldb/simpleleveldb.c
@@ -630,8 +630,8 @@ void do_dump_csv(int fd, short what, void *ctx)
630 630
         if (c == DUMP_CSV_ITERS_CHECK) {
631 631
             int64_t usecs;
632 632
             gettimeofday(&time_now, NULL);
633  
-            usecs = ((int64_t)time_now.tv_sec    * 1000000 + time_now.tv_usec  )
634  
-                  - ((int64_t)time_start.tv_sec  * 1000000 + time_start.tv_usec);
  633
+            usecs = 0 + ((int64_t)time_now  .tv_sec * 1000000 + time_now  .tv_usec)
  634
+                    -   ((int64_t)time_start.tv_sec * 1000000 + time_start.tv_usec);
635 635
             if (usecs > DUMP_CSV_MSECS_WORK * 1000) {
636 636
                 set_timer = 1;
637 637
                 break;

0 notes on commit ba1592d

Please sign in to comment.
Something went wrong with that request. Please try again.