Skip to content

Commit

Permalink
parse string values as doubles.
Browse files Browse the repository at this point in the history
  • Loading branch information
frett committed Nov 27, 2012
1 parent 89fefac commit 846b850
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Fuse.xs
Original file line number Diff line number Diff line change
Expand Up @@ -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; \
Expand Down

0 comments on commit 846b850

Please sign in to comment.