Commit 9a050779 authored by Jonathon Duerig's avatar Jonathon Duerig

Initialize node count to 0.

Also, reordered initialization of counters so it is the same as the order of the access methods for easier verification that everything gets initialized.
parent 21c5b9af
......@@ -3287,13 +3287,14 @@ sub CreateVtop($)
};
# Initialize counters.
$self->{'COUNTERS'}->{'simcount'} = 0;
$self->{'COUNTERS'}->{'remotecount'} = 0;
$self->{'COUNTERS'}->{'virtcount'} = 0;
$self->{'COUNTERS'}->{'nodecount'} = 0;
$self->{'COUNTERS'}->{'plabcount'} = 0;
$self->{'COUNTERS'}->{'genicount'} = 0;
$self->{'COUNTERS'}->{'physcount'} = 0;
$self->{'COUNTERS'}->{'virtcount'} = 0;
$self->{'COUNTERS'}->{'simcount'} = 0;
$self->{'COUNTERS'}->{'remotecount'} = 0;
$self->{'COUNTERS'}->{'sharedcount'} = 0;
$self->{'COUNTERS'}->{'physcount'} = 0;
#
# Experiment wide options.
......
......@@ -3436,13 +3436,14 @@ sub CreateVtop($)
};
# Initialize counters.
$self->{'COUNTERS'}->{'simcount'} = 0;
$self->{'COUNTERS'}->{'remotecount'} = 0;
$self->{'COUNTERS'}->{'virtcount'} = 0;
$self->{'COUNTERS'}->{'nodecount'} = 0;
$self->{'COUNTERS'}->{'plabcount'} = 0;
$self->{'COUNTERS'}->{'genicount'} = 0;
$self->{'COUNTERS'}->{'physcount'} = 0;
$self->{'COUNTERS'}->{'virtcount'} = 0;
$self->{'COUNTERS'}->{'simcount'} = 0;
$self->{'COUNTERS'}->{'remotecount'} = 0;
$self->{'COUNTERS'}->{'sharedcount'} = 0;
$self->{'COUNTERS'}->{'physcount'} = 0;
#
# Experiment wide options.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment