diff options
-rw-r--r-- | ext/standard/microtime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/microtime.c b/ext/standard/microtime.c index 22bb8c7715..a492ae4018 100644 --- a/ext/standard/microtime.c +++ b/ext/standard/microtime.c @@ -55,7 +55,7 @@ PHP_FUNCTION(microtime) msec = (double) (tp.tv_usec / MICRO_IN_SEC); sec = tp.tv_sec; } - if (msec > 1.0) msec -= (long) msec; + if (msec >= 1.0) msec -= (long) msec; snprintf(ret, 100, "%.8f %ld", msec, sec); RETVAL_STRING(ret,1); #endif |