output boottime when testing Uptime

This commit is contained in:
Doug MacEachern 2008-09-09 00:09:59 +00:00
parent 4f4805ffd1
commit 19a76d5fa1
1 changed files with 4 additions and 0 deletions

View File

@ -18,6 +18,7 @@
package org.hyperic.sigar.test;
import java.util.Date;
import org.hyperic.sigar.Sigar;
import org.hyperic.sigar.Uptime;
@ -32,6 +33,9 @@ public class TestUptime extends SigarTestCase {
Uptime uptime = sigar.getUptime();
long now = System.currentTimeMillis();
traceln("\nboottime=" +
new Date(now - (long)uptime.getUptime()*1000));
assertTrue(uptime.getUptime() > 0);
}
}