DevTech101

DevTech101

Below you can asee a subrutine that will cause perl to undrtsnad this as numbers

foreach (@full_cpu_data) {
        $_ =~ s/K//;
        @cpu_data = split(':', $_);

        @cpu_data  = map { $_ += 0 } @cpu_data;   

        push @cpu_plot, { cpu => @cpu_data[3], core => @uptime[6], disk => @disk[4] };
        $i++;
}

 

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
%d bloggers like this: