|
|
@ -156,14 +156,17 @@ public class Network {
|
|
|
|
final int activeLastMonth = sb.peers.sizeActiveSince(30 * 1440);
|
|
|
|
final int activeLastMonth = sb.peers.sizeActiveSince(30 * 1440);
|
|
|
|
final int activeLastWeek = sb.peers.sizeActiveSince(7 * 1440);
|
|
|
|
final int activeLastWeek = sb.peers.sizeActiveSince(7 * 1440);
|
|
|
|
final int activeLastDay = sb.peers.sizeActiveSince(1440);
|
|
|
|
final int activeLastDay = sb.peers.sizeActiveSince(1440);
|
|
|
|
|
|
|
|
final int activeLastHour = sb.peers.sizeActiveSince(60);
|
|
|
|
final int activeSwitch =
|
|
|
|
final int activeSwitch =
|
|
|
|
(activeLastDay <= conCount) ? 0 :
|
|
|
|
(activeLastHour <= conCount) ? 0 :
|
|
|
|
(activeLastWeek <= activeLastDay) ? 1 :
|
|
|
|
(activeLastDay <= activeLastHour) ? 1 :
|
|
|
|
(activeLastMonth <= activeLastWeek) ? 2 : 3;
|
|
|
|
(activeLastWeek <= activeLastDay) ? 2 :
|
|
|
|
|
|
|
|
(activeLastMonth <= activeLastWeek) ? 3 : 4;
|
|
|
|
prop.putNum("table_active-switch", activeSwitch);
|
|
|
|
prop.putNum("table_active-switch", activeSwitch);
|
|
|
|
prop.putNum("table_active-switch_last-month", activeLastMonth);
|
|
|
|
prop.putNum("table_active-switch_last-month", activeLastMonth);
|
|
|
|
prop.putNum("table_active-switch_last-week", activeLastWeek);
|
|
|
|
prop.putNum("table_active-switch_last-week", activeLastWeek);
|
|
|
|
prop.putNum("table_active-switch_last-day", activeLastDay);
|
|
|
|
prop.putNum("table_active-switch_last-day", activeLastDay);
|
|
|
|
|
|
|
|
prop.putNum("table_active-switch_last-hour", activeLastHour);
|
|
|
|
prop.putNum("table_active-count", conCount);
|
|
|
|
prop.putNum("table_active-count", conCount);
|
|
|
|
prop.putNum("table_active-links", accActLinks);
|
|
|
|
prop.putNum("table_active-links", accActLinks);
|
|
|
|
prop.putNum("table_active-words", accActWords);
|
|
|
|
prop.putNum("table_active-words", accActWords);
|
|
|
|