Logo Search packages:      
Sourcecode: kcollectd version File versions  Download package

void Graph::last ( time_t  new_span ) [virtual]

set the graph to display the last new_span seconds

Definition at line 992 of file graph.cc.

{
  span = new_span;
  
  if (autoUpdateTimer != -1) {
    timer_diff = 0.99 * span;
    start = time(0) - timer_diff;
  } else {
    start = time(0) - 0.99 * span;
  }
  data_is_valid = false;
  update();
}

Generated by  Doxygen 1.6.0   Back to index