[SCM] The rsync repository. - branch master updated
Rsync CVS commit messages
rsync-cvs at lists.samba.org
Sun Jan 31 22:41:55 UTC 2016
The branch, master has been updated
via 4e25abc Fix/improve the sort functions. Fixes bug 11704.
from 839dbff Add support for comparing nanoseconds on the receiver.
https://git.samba.org/?p=rsync.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 4e25abc9a90ba2287670a1e6d445a7350f6d886b
Author: Wayne Davison <wayned at samba.org>
Date: Sun Jan 31 14:40:47 2016 -0800
Fix/improve the sort functions.
Fixes bug 11704.
-----------------------------------------------------------------------
Summary of changes:
support/rsyncstats | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
Changeset truncated at 500 lines:
diff --git a/support/rsyncstats b/support/rsyncstats
index e770b9d..ab7246d 100755
--- a/support/rsyncstats
+++ b/support/rsyncstats
@@ -270,27 +270,27 @@ foreach $hour (sort keys %xfertbytes) {
exit(0);
sub datecompare {
- $a gt $b;
+ $a cmp $b;
}
sub domnamcompare {
$sdiff = length($a) - length($b);
- ($sdiff < 0) ? -1 : ($sdiff > 0) ? 1 : ($a lt $b) ? -1 : ($a gt $b) ? 1 : 0;
+ ($sdiff < 0) ? -1 : ($sdiff > 0) ? 1 : $a cmp $b;
}
sub bytecompare {
$bdiff = $groupbytes{$b} - $groupbytes{$a};
- ($bdiff < 0) ? -1 : ($bdiff > 0) ? 1 : ($a lt $b) ? -1 : ($a gt $b) ? 1 : 0;
+ ($bdiff < 0) ? -1 : ($bdiff > 0) ? 1 : $a cmp $b;
}
sub faccompare {
$fdiff = $fac{$b} - $fac{$a};
- ($fdiff < 0) ? -1 : ($fdiff > 0) ? 1 : ($a lt $b) ? -1 : ($a gt $b) ? 1 : 0;
+ ($fdiff < 0) ? -1 : ($fdiff > 0) ? 1 : $a cmp $b;
}
--
The rsync repository.
More information about the rsync-cvs
mailing list