jTracer  1.03
Stack trace visualization tool
void org.libcsdbg.jtracer.StatusBar.renderUptime ( )
private

Update the server uptime field.

Definition at line 330 of file StatusBar.java.

References org.libcsdbg.jtracer.StatusBar.uptime.

Referenced by org.libcsdbg.jtracer.StatusBar.actionPerformed(), and org.libcsdbg.jtracer.StatusBar.stopUptimeTimer().

331  {
332  long now = uptime;
333  long hours = now / 3600;
334 
335  now = now % 3600;
336  long minutes = now / 60;
337  long seconds = now % 60;
338 
339  String tm = "Uptime ";
340  tm += ((hours < 10) ? "0" : "") + hours + ":";
341  tm += ((minutes < 10) ? "0" : "") + minutes + ":";
342  tm += ((seconds < 10) ? "0" : "") + seconds;
343 
344  fields.get("uptime").setText(tm);
345  }
long uptime
Server uptime (seconds)
Definition: StatusBar.java:38

+ Here is the caller graph for this function: