Examples of OverallStats


Examples of org.gudy.azureus2.core3.stats.transfer.OverallStats

    Listener lSR = new Listener() {
      public void handleEvent(Event e) {

        uiFunctions.openView(UIFunctions.VIEW_STATS, "transfers");

        OverallStats stats = StatsFactory.getStats();
       
        if (stats == null) {
          return;
        }

        long ratio = (1000 * stats.getUploadedBytes() / (stats.getDownloadedBytes() + 1));

        if (ratio < 900) {

          Utils.launch(Constants.AZUREUS_WIKI + "Share_Ratio");
        }
View Full Code Here

Examples of org.gudy.azureus2.core3.stats.transfer.OverallStats

     * Feedback
     *
     */

    // only show after restart after 15 mins uptime
    OverallStats stats = StatsFactory.getStats();

    long secs_uptime = stats.getTotalUpTime();

    long last_uptime = COConfigurationManager.getLongParameter(
        "statusbar.feedback.uptime", 0);

    if (last_uptime == 0) {
View Full Code Here

Examples of org.gudy.azureus2.core3.stats.transfer.OverallStats

            "Already Donated! I like you.").open(null);
      }
      return;
    }
   
    OverallStats stats = StatsFactory.getStats();
    if (stats == null) {
      return;
    }

    long upTime = stats.getTotalUpTime();
    int hours = (int) (upTime / (60 * 60)); //secs * mins

    //Ask every DONATIONS_ASK_AFTER hours.
    int nextAsk = COConfigurationManager.getIntParameter(
        "donations.nextAskHours", 0);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.