http://qs1969.pair.com?node_id=1088300

Jabox has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to make a graph with two different data in the same graph. So the graph would look like

Process Graph

| | | * | + | __________________

* = uninterupted + = waiting

The data

Proc * + 9 8

So far what I did was

push(@$run_stats_all, $run); push(@$unint_stats_all, $unint);

And I want to add those two by doing

would this part work?
my @proc = ([@$run_stats_all],[@$unit_stats_all]); push (@procdata, @proc);

And then use the following to create graph

$obj->createGraph( $input_file, $num_samples, 'Processe +s', 'proc_data', \@procdata, \@proclabels ),

the $obj is a module to create the graph which works on mpstat and iostat just not sure how to do vmstat

I just want to know if that code up there would work or would it get messy and mess it up?

It was easier on mpstat and iostat because mpstat has CPU and iostat has sda devices

THANKS IN ADVANCE!

P.S. I am still very bad doing perl... so if it doesn't add up at all I apologize. Trying to improve my troubleshooting / critical thinking skills while doing these kinds of codes