All pastes #913487 Raw Edit

Something

public text v1 · immutable
·published 2008-02-22 02:44 UTC
rendered paste body
open LOG, "<", "topmod.txt" or die $!;
	my @logLines = <LOG>;
	close LOG;
	
	foreach(@logLines){
		if ($_ =~ /^resc.+/)
		{
			push(@rescLines, $_);
		}
	}
	
	for(my $i=0; $i<=$#rescLines; $i++){
	 	
		$rescLines[$i] =~ s/\s+/ /g;
		
	}
			for(my $i=0; $i<=$#rescLines; $i++){
				
				my @parsed = split(' ', $rescLines[$i]);
				shift @parsed;
				
				#$totalCPU{Processname} += CPU usage;
				#$totalMemory{Processname} += Memory usage;
				#$processCount{Processname}++;
			}