Permalink
Browse files

Use milliseconds instead of microseconds for start time in traced req…

…uests (for 32-bit systems)
  • Loading branch information...
1 parent 41c1316 commit 2e6efc3cb4b17eb7df629006e269cb000dfc4b68 @tmm1 tmm1 committed Jan 29, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 ext/memprof.c
View
@@ -498,7 +498,7 @@ memprof_trace_request(VALUE self, VALUE env)
json_gen_cstr(gen, "start");
gettimeofday(&now, NULL);
- json_gen_integer(gen, (now.tv_sec * 1000000) + now.tv_usec);
+ json_gen_integer(gen, (now.tv_sec * 1000) + (now.tv_usec / 1000));
json_gen_cstr(gen, "tracers");
json_gen_map_open(gen);

0 comments on commit 2e6efc3

Please sign in to comment.