From 51512b214b8e90995e0ca0800dc55569813a25f8 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Tue, 23 Sep 2008 14:51:24 +0000 Subject: [PATCH] Bugfixing --- LogRotate/Common.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LogRotate/Common.pm b/LogRotate/Common.pm index c4d6ea2..3755dc5 100644 --- a/LogRotate/Common.pm +++ b/LogRotate/Common.pm @@ -93,7 +93,7 @@ sub human2byte($) { my ( $unit, $factor ); - if ( $val =~ /^\s*(\d+(?:\.\d*)?)\s*(?:([kmg])(?:b|byte)?)?\s*$/i ) { + if ( $val =~ /^\s*\+?(\d+(?:\.\d*)?)\s*(?:([kmg])(?:b|byte)?)?\s*$/i ) { $factor = 1; $val = $1 + 0; $unit = lc( $2 || 'b' ); -- 2.39.5