MPI Distrib exp: replace next generated waiting time by 0 if it's negative
This commit is contained in:
parent
f8ca95b352
commit
16cbf69d5d
1 changed files with 3 additions and 1 deletions
|
|
@ -34,7 +34,9 @@ class Distribution : public std::vector< type >
|
||||||
{
|
{
|
||||||
for( unsigned i = 0; i < size; ++i )
|
for( unsigned i = 0; i < size; ++i )
|
||||||
{
|
{
|
||||||
push_back( next_element() );
|
int next = next_element();
|
||||||
|
if( next < 0 ) next = 0;
|
||||||
|
push_back( next );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue