View | Details | Raw Unified | Return to bug 1761
Collapse All | Expand All

(-)a/src/olsr/model/olsr-header.cc (-1 / +1 lines)
 Lines 61-67    Link Here 
61
  double tmp = 16*(seconds/(OLSR_C*(1<<b))-1);
61
  double tmp = 16*(seconds/(OLSR_C*(1<<b))-1);
62
62
63
  // round it up.  This results in the value for 'a'
63
  // round it up.  This results in the value for 'a'
64
  a = (int) std::ceil (tmp);
64
  a = (int) std::ceil (tmp-0.5);
65
65
66
  // if 'a' is equal to 16: increment 'b' by one, and set 'a' to 0
66
  // if 'a' is equal to 16: increment 'b' by one, and set 'a' to 0
67
  if (a == 16)
67
  if (a == 16)

Return to bug 1761