chiark / gitweb /
Clock skew is only if timestamp is > now
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 4 Nov 2009 11:19:17 +0000 (11:19 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 4 Nov 2009 11:19:17 +0000 (11:19 +0000)
yarrg/commod-update-receiver

index e03a918..0ae5ba8 100755 (executable)
@@ -129,7 +129,7 @@ foreach my $islands (values %$arches) {
 fail("unknown island") unless $island_found;
 
 $o{'timestamp'}= must_param('timestamp', "^([1-9]\\d{1,20})\$");
-fail("clock skew") if $o{'timestamp'} >= $now;
+fail("clock skew") if $o{'timestamp'} > $now;
 
 my $indatafh= upload('data');
 defined $indatafh or fail("data is not a file");