| 1 | package System::Info::Haiku; | ||||||||||
| 2 | |||||||||||
| 3 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 2 | ▶ | use base "System::Info::Base"; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 2 | our $VERSION = "0.050"; | |||||||||
| 9 | |||||||||||
| 10 | =head1 NAME | ||||||||||
| 11 | |||||||||||
| 12 | System::Info::Haiku - Object for specific Haiku info. | ||||||||||
| 13 | |||||||||||
| 14 | =head1 DESCRIPTION | ||||||||||
| 15 | |||||||||||
| 16 | =head2 $si->prepare_sysinfo | ||||||||||
| 17 | |||||||||||
| 18 | Use os-specific tools to find out more about the system. | ||||||||||
| 19 | |||||||||||
| 20 | =cut | ||||||||||
| 21 | |||||||||||
| 22 | 0 | ▶ | sub prepare_sysinfo { | ||||||||
|
Subroutine
prepare_sysinfo: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 23 | 0 | my $self = shift; | |||||||||
| 24 | 0 | $self->SUPER::prepare_sysinfo; | |||||||||
| 25 | |||||||||||
| 26 | 0 | eval { local $^W = 0; require Haiku::SysInfo }; | |||||||||
| 27 | 0 | ▶ | $@ and return $self; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 28 | |||||||||||
| 29 | 0 | my $hsi = Haiku::SysInfo->new; | |||||||||
| 30 | 0 | (my $cbs = $hsi->cpu_brand_string) =~ s/^\s+//; | |||||||||
| 31 | 0 | $self->{__cpu_type} = sprintf "0x%x", $hsi->cpu_type; | |||||||||
| 32 | 0 | $self->{__cpu} = $cbs; | |||||||||
| 33 | 0 | $self->{__cpu_count} = $hsi->cpu_count; | |||||||||
| 34 | |||||||||||
| 35 | 0 | $self->{__os} = join " - " => $hsi->kernel_name, $hsi->kernel_version; | |||||||||
| 36 | 0 | return $self; | |||||||||
| 37 | } # prepare_sysinfo | ||||||||||
| 38 | |||||||||||
| 39 | 2 | 1; | |||||||||
| 40 | |||||||||||
| 41 | __END__ | ||||||||||