Skip to content

Commit

Permalink
Fixed days uptime
Browse files Browse the repository at this point in the history
  • Loading branch information
matteo committed Mar 13, 2015
1 parent dae5a51 commit 82e1434
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vm.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -483,8 +483,7 @@ a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^
<div>Running from: <%= df.format( runningFrom )%><br/> Uptime:
<%
double uptime = rMXBean.getUptime() / 1000d;
int weeks = (int)(uptime / 86400 / 7);
int days = (int)(uptime / 86400 % 7);
int days = (int)(uptime / 86400);
int hours = (int)(uptime / 3600 % 24);
int minutes = (int)(uptime / 60 % 60);
int seconds = (int)(uptime % 60);
Expand Down

0 comments on commit 82e1434

Please sign in to comment.