More info command improvements.
This commit is contained in:
commit
7a50ac88ac
2 changed files with 3 additions and 7 deletions
|
@ -13,8 +13,8 @@ import java.util.Date;
|
||||||
* Annotation Processor</a>
|
* Annotation Processor</a>
|
||||||
*/
|
*/
|
||||||
public final class ReleaseInfo {
|
public final class ReleaseInfo {
|
||||||
private final static String buildmeta = "006";
|
private final static String buildmeta = "005";
|
||||||
private final static Date date = new Date(1467669326019L);
|
private final static Date date = new Date(1467669995645L);
|
||||||
private final static int major = 0;
|
private final static int major = 0;
|
||||||
private final static int minor = 7;
|
private final static int minor = 7;
|
||||||
private final static int patch = 0;
|
private final static int patch = 0;
|
||||||
|
|
|
@ -1139,16 +1139,14 @@ public class Mobibot extends PircBot
|
||||||
timeInSeconds -= (years * 31540000L);
|
timeInSeconds -= (years * 31540000L);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
final long weeks = timeInSeconds / 604800L;
|
final long weeks = timeInSeconds / 604800L;
|
||||||
|
|
||||||
if (weeks > 0)
|
if (weeks > 0)
|
||||||
{
|
{
|
||||||
info.append(weeks).append(Utils.plural(weeks, " week ", " weeks "));
|
info.append(weeks).append(Utils.plural(weeks, " week ", " weeks "));
|
||||||
timeInSeconds -= (weeks * 604800L);
|
timeInSeconds -= (weeks * 604800L);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
final long days = timeInSeconds / 86400L;
|
final long days = timeInSeconds / 86400L;
|
||||||
|
|
||||||
if (days > 0)
|
if (days > 0)
|
||||||
|
@ -1157,7 +1155,6 @@ public class Mobibot extends PircBot
|
||||||
timeInSeconds -= (days * 86400L);
|
timeInSeconds -= (days * 86400L);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
final long hours = timeInSeconds / 3600L;
|
final long hours = timeInSeconds / 3600L;
|
||||||
|
|
||||||
if (hours > 0)
|
if (hours > 0)
|
||||||
|
@ -1166,7 +1163,6 @@ public class Mobibot extends PircBot
|
||||||
timeInSeconds -= (hours * 3600L);
|
timeInSeconds -= (hours * 3600L);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
final long minutes = timeInSeconds / 60L;
|
final long minutes = timeInSeconds / 60L;
|
||||||
|
|
||||||
info.append(minutes).append(Utils.plural(minutes, " minute ", " minutes "));
|
info.append(minutes).append(Utils.plural(minutes, " minute ", " minutes "));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue