MPI Distrib exp: replace next generated waiting time by 0 if it's negative

This commit is contained in:
Benjamin BOUVIER 2012-09-07 11:43:43 -04:00
commit 16cbf69d5d

View file

@ -34,7 +34,9 @@ class Distribution : public std::vector< type >
{
for( unsigned i = 0; i < size; ++i )
{
push_back( next_element() );
int next = next_element();
if( next < 0 ) next = 0;
push_back( next );
}
}