Skip to content
This repository has been archived by the owner on Jul 30, 2021. It is now read-only.

Commit

Permalink
Explicitly round down for timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
bsdphk committed Jun 24, 2014
1 parent 2afa113 commit c2c3156
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/libvmod_std/vmod_std_conversions.c
Expand Up @@ -209,7 +209,7 @@ vmod_time2integer(const struct vrt_ctx *ctx, VCL_TIME t)
{
CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC);

return (t);
return ((long)floor(t));
}

VCL_REAL __match_proto__(td_std_time2real)
Expand Down

0 comments on commit c2c3156

Please sign in to comment.