FreeHAL
view release on metacpan or search on metacpan
AI/FreeHAL/Engine.pm view on Meta::CPAN
### tagger end
# close
close $source;
$i = 0;
my $cpu_limit = 100;
open my $preferences, '<', '../../global_prefs_override.xml'
or say "Preferences not found!";
while ( defined( my $line = <$preferences> ) ) {
if ( $line =~ /cpu_usage_limit/ ) {
$line =~ m/[>](.*?)\./;
$cpu_limit = $1 if $1;
say $line;
}
if ( $line =~ /max_ncpus_pct/ ) {
$line =~ m/[>](.*?)\./;
$cpu_limit = $1 if $1;
( run in 0.864 second using v1.01-cache-2.11-cpan-0bb4e1dffa6 )