Permalink
Browse files

parse string values as doubles.

  • Loading branch information...
1 parent 89fefac commit 846b850308e4ebcbd51a0fec26fa8c0f9b014f41 @frett frett committed Nov 27, 2012
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 846b850

Please sign in to comment.