Heray-Was-Here
Server : Apache
System : Linux vps103298.mylogin.co 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64
User : calvet ( 273824)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /usr/share/fusioninventory/lib/FusionInventory/Agent/Tools/PartNumber/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/fusioninventory/lib/FusionInventory/Agent/Tools/PartNumber/Elpida.pm
package FusionInventory::Agent::Tools::PartNumber::Elpida;

use strict;
use warnings;

use parent 'FusionInventory::Agent::Tools::PartNumber';

# Based on specs from Elpida Memory, Inc 2002-2012 - ECT-TS-2039 June 2012

use constant match_re       => qr/^E([BCD])(.).{8}.?-(..).?.?(?:-..)?$/;

use constant category       => "memory";
use constant manufacturer   => "Elpida";

sub init {
    my ($self, $bcd_match, $type_match, $speed_match ) = @_;

    my %speeds = (
        B   => { qw(
            DJ  10660    GN  12800
        ) },
        C   => { qw(
            50  400
        ) },
        D   => { qw(
            AE  1066    DJ  1333    MU  2133    GN  1600    JS  1866    1J  1066
            8E  800
        ) },
    );
    my $speeds = $speeds{$bcd_match} // {};
    $self->{_speed} = $speeds->{$speed_match};

    my %types = qw(
        M   DDR     E   DDR2    J   DDR3    B   DDR2
    );
    $self->{_type} = $types{$type_match};

    return $self;
}

1;

Hry