Permalink
Browse files

Merge pull request #11 from frett/timeFmtFix

parse string timestamp values as doubles
  • Loading branch information...
dpavlin committed Nov 27, 2012
2 parents 89fefac + 846b850 commit c4929890bddb16807be1c8aae50d8392ac7dfa45
Showing with 1 addition and 1 deletion.
  1. +1 −1 Fuse.xs
View
@@ -36,7 +36,7 @@
STAT_SEC(st, st_xtim) = SvIV(*(av_fetch(av, 0, FALSE))); \
STAT_NSEC(st, st_xtim) = SvIV(*(av_fetch(av, 1, FALSE))); \
} \
- else if (SvNOK(sv) || SvIOK(sv)) { \
+ else if (SvNOK(sv) || SvIOK(sv) || SvPOK(sv)) { \
double tm = SvNV(sv); \
STAT_SEC(st, st_xtim) = (int)tm; \
STAT_NSEC(st, st_xtim) = (tm - (int)tm) * 1000000000; \

0 comments on commit c492989

Please sign in to comment.