Permalink
Browse files

simpleleveldb: ridiculous contortions to appease code style script wh…

…ile manually aligning this calculation
  • Loading branch information...
1 parent 94b903f commit ba1592de906addae38fe75c0e372cc902a2198b8 Pierce Lopez committed Apr 11, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 simpleleveldb/simpleleveldb.c
@@ -630,8 +630,8 @@ void do_dump_csv(int fd, short what, void *ctx)
if (c == DUMP_CSV_ITERS_CHECK) {
int64_t usecs;
gettimeofday(&time_now, NULL);
- usecs = ((int64_t)time_now.tv_sec * 1000000 + time_now.tv_usec )
- - ((int64_t)time_start.tv_sec * 1000000 + time_start.tv_usec);
+ usecs = 0 + ((int64_t)time_now .tv_sec * 1000000 + time_now .tv_usec)
+ - ((int64_t)time_start.tv_sec * 1000000 + time_start.tv_usec);
if (usecs > DUMP_CSV_MSECS_WORK * 1000) {
set_timer = 1;
break;

0 comments on commit ba1592d

Please sign in to comment.