Skip to content

Commit

Permalink
[backend] bs_mergechanges: compare time as numbers, not strings
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Nov 7, 2014
1 parent 8df093e commit 534706b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/bs_mergechanges
Expand Up @@ -143,7 +143,7 @@ while (@files) {
$time = str2time($timestr);
die("unable to parse time $line") unless $time;
die("unable to find email in time line") unless $email;
print "Read $time\n" if $verbose;
print "Read ".time2mystr($time)."($time) for $line\n" if $verbose;
next;
}

Expand Down Expand Up @@ -173,7 +173,7 @@ while (@files) {
print "Merged ouput:\n===========\n" if $verbose;

# output the hash
for my $time (sort{$b cmp $a} keys %$entries) {
for my $time (sort{$b <=> $a} keys %$entries) {
print $seperator."\n";
print $entries->{$time}->{time}." - ".$entries->{$time}->{email}."\n";
print $entries->{$time}->{text};
Expand Down

0 comments on commit 534706b

Please sign in to comment.