Permalink
Browse files

Report timestamps in terms of pdo_time (intended time) always

  • Loading branch information...
1 parent 5dcc07b commit d3047043edb64a06071c6ab85edac8e6c3035203 Ubuntu committed Mar 10, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 sender/cellsim.cc
View
@@ -216,7 +216,7 @@ void DelayQueue::tick( void )
_used_bytes += _limbo.front().packet.contents.size();
if ( _printing ) {
- printf( "%s %lu delivery %d %lu leftover\n", _name.c_str(), convert_timestamp( pdo_time ), int(now - _limbo.front().packet.entry_time), _limbo.front().packet.contents.size() );
+ printf( "%s %lu delivery %d %lu leftover\n", _name.c_str(), convert_timestamp( pdo_time ), int(pdo_time - _limbo.front().packet.entry_time), _limbo.front().packet.contents.size() );
}
_delivered.push_back( _limbo.front().packet.contents );
@@ -253,7 +253,7 @@ void DelayQueue::tick( void )
_used_bytes += packet.contents.size();
if ( _printing ) {
- printf( "%s %lu delivery %d %lu\n", _name.c_str(), convert_timestamp( pdo_time ), int(now - packet.entry_time), packet.contents.size() );
+ printf( "%s %lu delivery %d %lu\n", _name.c_str(), convert_timestamp( pdo_time ), int(pdo_time - packet.entry_time), packet.contents.size() );
}
_delivered.push_back( packet.contents );

0 comments on commit d304704

Please sign in to comment.