Fix a error that happens if the process was started last year.

This commit is contained in:
Zane C. B-H 2019-01-05 12:01:47 -06:00
parent ca1a38e786
commit 4ef63bde8d
2 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,8 @@
Revision history for Proc-ProcessTable-Colorizer
0.2.1 2019-01-05/12:00
-Fix a typo that causes errors if the process was started last year.
0.2.0 2017-11-08/02:00
-Fix numeric search string checking involving numbers with decimal points.
-Move self ignore check to the end so it works properly.

View File

@ -19,11 +19,11 @@ Proc::ProcessTable::Colorizer - Like ps, but with colored columns and enhnaced f
=head1 VERSION
Version 0.2.0
Version 0.2.1
=cut
our $VERSION = '0.2.0';
our $VERSION = '0.2.1';
=head1 SYNOPSIS
@ -1219,7 +1219,7 @@ sub startString{
#find the most common one and return it
if ( $year ne $cyear ){
return $year.sprintf('%02d', $mon).sprintf('%02d', $mday).'-'/sprintf('%02d', $hour).':'.sprintf('%02d', $min);
return $year.sprintf('%02d', $mon).sprintf('%02d', $mday).'-'.sprintf('%02d', $hour).':'.sprintf('%02d', $min);
}
if ( $mon ne $cmon ){
return sprintf('%02d', $mon).sprintf('%02d', $mday).'-'.sprintf('%02d', $hour).':'.sprintf('%02d', $min);