ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/bin/deliantra
(Generate patch)

Comparing deliantra/Deliantra-Client/bin/deliantra (file contents):
Revision 1.40 by root, Mon May 5 20:22:03 2008 UTC vs.
Revision 1.41 by elmex, Mon May 5 20:51:36 2008 UTC

1742 1742
1743 $r 1743 $r
1744} 1744}
1745 1745
1746my %SORT_ORDER = ( 1746my %SORT_ORDER = (
1747 type => undef, 1747 type => sub {
1748 sort { $a->{type} <=> $b->{type} or $a->{name} cmp $b->{name} } @_
1749 },
1748 mtime => sub { 1750 mtime => sub {
1749 my $NOW = time; 1751 my $NOW = time;
1750 sort { 1752 sort {
1751 my $atime = $a->{mtime} - $NOW; $atime = $atime < 5 * 60 ? int $atime / 60 : 6; 1753 my $atime = $a->{mtime} - $NOW; $atime = $atime < 5 * 60 ? int $atime / 60 : 6;
1752 my $btime = $b->{mtime} - $NOW; $btime = $btime < 5 * 60 ? int $btime / 60 : 6; 1754 my $btime = $b->{mtime} - $NOW; $btime = $btime < 5 * 60 ? int $btime / 60 : 6;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines