[vhffs-dev] [546] Same player play again... |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 546
Author: gradator
Date: 2007-04-08 11:28:32 +0000 (Sun, 08 Apr 2007)
Log Message:
-----------
Same player play again...
Modified Paths:
--------------
branches/vhffs_4.1/vhffs-api/src/Vhffs/Services/DNS.pm
trunk/vhffs-api/src/Vhffs/Services/DNS.pm
Modified: branches/vhffs_4.1/vhffs-api/src/Vhffs/Services/DNS.pm
===================================================================
--- branches/vhffs_4.1/vhffs-api/src/Vhffs/Services/DNS.pm 2007-04-07 23:57:48 UTC (rev 545)
+++ branches/vhffs_4.1/vhffs-api/src/Vhffs/Services/DNS.pm 2007-04-08 11:28:32 UTC (rev 546)
@@ -625,12 +625,12 @@
{
my $self = shift;
my ($second,$minutes,$hours,$day,$month,$year) = localtime(time);
- my $newserial = sprintf('%.4u%.2u%.2u01',$year+1900,$month+1,$day);
+ my $newserial = sprintf('%.4u%.2u%.2u',$year+1900,$month+1,$day);
- if( $self->{serial} =~ /^$newserial/ || $self->{serial} > $newserial ) {
+ if( $self->{serial} =~ /^$newserial/ || $self->{serial} > $newserial.'01' ) {
return ($self->{serial} + 1);
} else {
- return ($newserial);
+ return $newserial.'01';
}
}
Modified: trunk/vhffs-api/src/Vhffs/Services/DNS.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Services/DNS.pm 2007-04-07 23:57:48 UTC (rev 545)
+++ trunk/vhffs-api/src/Vhffs/Services/DNS.pm 2007-04-08 11:28:32 UTC (rev 546)
@@ -713,15 +713,15 @@
#Update the serial to refresh the domain
my ($second,$minutes,$hours,$day,$month,$year) = localtime(time);
- my $newserial = sprintf('%.4u%.2u%.2u01',$year+1900,$month+1,$day);
+ my $newserial = sprintf('%.4u%.2u%.2u',$year+1900,$month+1,$day);
- if( $self->{SOA}->{serial} =~ /^$newserial/ || $self->{SOA}->{serial} > $newserial )
+ if( $self->{SOA}->{serial} =~ /^$newserial/ || $self->{SOA}->{serial} > $newserial.'01' )
{
$self->{SOA}->{serial}++;
}
else
{
- $self->{SOA}->{serial} = $newserial;
+ $self->{SOA}->{serial} = $newserial.'01';
}
#First, commit the SOA