Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Attempt to fix a fencepost error, original patch from he32++

  • Loading branch information...
commit 418a184b83e9da24cb44c094cb65eaeba77c1b91 1 parent 7aef369
@leto leto authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/platform/generic/time.c
View
6 src/platform/generic/time.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2004-2010, Parrot Foundation.
+ * Copyright (C) 2004-2012, Parrot Foundation.
*/
/*
@@ -10,7 +10,7 @@ src/platform/generic/time.c
=head1 DESCRIPTION
-Parrot time-related functions.
+Parrot time-related functions which are not specific to any platform.
=head2 Functions
@@ -109,7 +109,7 @@ Sleep for the specified number of seconds.
void
Parrot_floatval_sleep(FLOATVAL time)
{
- if (time > 1000) {
+ if (time >= 1000) {
/* prevent integer overflow when converting to microseconds */
const int seconds = floor(time);
Parrot_sleep(seconds);
Please sign in to comment.
Something went wrong with that request. Please try again.