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

void Graph::autoUpdate ( bool  active )

switch auto-update on or off

Auto-update does a update every 10 sec.

Definition at line 767 of file graph.cc.

References autoUpdate().

Referenced by autoUpdate().

{
  if (active == true) {
    if (autoUpdateTimer == -1) {
      autoUpdateTimer = startTimer(10000);
      timer_diff = 0.99 * span;
      start = time(0) - timer_diff;
      data_is_valid = false;
      update();
    }
  } else {
    if (autoUpdateTimer != -1) {
      killTimer(autoUpdateTimer);
      autoUpdateTimer = -1;
    }
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index