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 :  /proc/self/root/usr/share/fusioninventory/lib/FusionInventory/Agent/Tools/PartNumber/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/usr/share/fusioninventory/lib/FusionInventory/Agent/Tools/PartNumber/Micron.pm
package FusionInventory::Agent::Tools::PartNumber::Micron;

use strict;
use warnings;

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

# https://www.micron.com/products/dram-modules/rdimm/part-catalog

use constant match_re => qr/^
    (?:MTA?)?
    \d+
    ([AHJK])
    [DST]
    [FQS]
    \d+G?               # depth: 256MB, 1G, etc.
    72                  # width: x72
    [AP](?:[DS])?Z
    \-
/x;

use constant category     => 'memory';
use constant manufacturer => 'Micron';

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

    my %types = qw(
        H   DDR2
        J   DDR3    K   DDR3
        A   DDR4
    );
    $self->{_type} = $types{$type_match};

    return $self;
}

1;

Hry