Ignore:
Timestamp:
Sep 27, 2019, 11:07:56 AM (2 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr
Children:
c3a2007
Parents:
1e24d13
Message:

Fixed support for setting number of starting nodes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/thierry_delisle_PhD/code/relaxed_list.hpp

    r1e24d13 rc921712  
    7474                #ifndef NO_STATS
    7575                        std::cout << "Difference   : "
    76                                 << size_t(double(intrusive_queue_t::stat::dif.value) / intrusive_queue_t::stat::dif.num  ) << " avg\t"
     76                                << ssize_t(double(intrusive_queue_t::stat::dif.value) / intrusive_queue_t::stat::dif.num  ) << " avg\t"
    7777                                << intrusive_queue_t::stat::dif.max << "max" << std::endl;
    7878                #endif
     
    200200                                stat::dif.value+= s.diff;
    201201                                stat::dif.num  ++;
    202                                 stat::dif.max  = std::max(stat::dif.max, s.diff);
     202                                stat::dif.max  = std::abs(stat::dif.max) > std::abs(s.diff) ? stat::dif.max : s.diff;
    203203                        #endif
    204204                }
Note: See TracChangeset for help on using the changeset viewer.