==================================================================
Please DO NOT REPLY to this mail or send email to the developers
about this bug. Please follow-up to Bugzilla using this
link:http://bugs.contribs.org/show_bug.cgi?id=8395
Have you checked the Frequently Asked Questions (FAQ)?
http://wiki.contribs.org/SME_Server:Documentation:FAQ
Please also take the time to read the following useful guide:
http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
==================================================================
--- Comment #20 from Terje Edseth <[email protected]> ---
All changes done in /sbin/e-smith/affa
The sprintf changes made in sub listArchives() is only to change the layout of
the --list-archives table
Also in sub listArchives()
- my $NumberOfFiles = ($valid and $c[3]) ?
countUnit($c[3]) : '-';
+ my $NumberOfFiles = ($valid and $c[3]) ? $c[3]
: '-';
+ $NumberOfFiles =~ s/,//g;
Removed countUnit from first line due to the extended output from updated rsync
like "473447 (reg: 413638 dir: 59758 link: 51) and removing commas from
NumberOfFiles
Nest two changes made in sub listArchivesRaw($)
- (my $TotalFileSize=$v->prop('TotalFileSize')||0) =~
s/.*?(\d*).*/$1/;
- (my $TotalBytesReceived=$v->prop('TotalBytesReceived')||0) =~
s/.*?(\d*).*/$1/;
+ (my $TotalFileSize=$v->prop('TotalFileSize')||0) =~
s/(\D*)*/$1/g;
+ (my $TotalBytesReceived=$v->prop('TotalBytesReceived')||0) =~
s/(\D*)*/$1/g;
s/.*?(\d*).*/$1/; changed to s/(\D*)*/$1/g;
Done to remove commas and " bytes" from TotalFileSize and TotalBytesReceived
But as I said my perl knowledge is poor so I don't even know if it is valid
code, but it works for me.
Last change made in sub getStatusRaw()
- (my $TotalFileSize=$props{'TotalFileSize'}||0) =~
s/.*?(\d*).*/$1/;
+ (my $TotalFileSize=$props{'TotalFileSize'}||0) =~
s/(\D*)*/$1/g;
Same as above.
Sorry but I don't think I'm able to explain any better
HTH
--
You are receiving this mail because:
You are the QA Contact for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at http://lists.contribs.org/mailman/public/contribteam/