public class UptimeEstimator
extends java.lang.Object
implements java.lang.Runnable
Constructor and Description |
---|
UptimeEstimator(ProgramDirectory runDir,
Ticker ticker,
byte[] bs) |
Modifier and Type | Method and Description |
---|---|
double |
getUptime()
Get the node's uptime fraction over the past 48 hours.
|
double |
getUptimeWeek()
Get the node's uptime fraction over the past 168 hours.
|
void |
run() |
void |
start() |
public UptimeEstimator(ProgramDirectory runDir, Ticker ticker, byte[] bs)
public void start()
public void run()
run
in interface java.lang.Runnable
public double getUptime()
public double getUptimeWeek()