Ignore:
Timestamp:
Jan 19, 2013, 12:58:17 PM (12 years ago)
Author:
alloc
Message:

AEI2 0.92b:\n- Using zipped Depot cache

File:
1 edited

Legend:

Unmodified
Added
Removed
  • AE/installer2/src/net/oni2/aeinstaller/gui/MainWin.java

    r633 r634  
    1010import java.io.IOException;
    1111import java.net.URL;
     12import java.util.Date;
    1213import java.util.HashMap;
    1314import java.util.HashSet;
     
    4243import net.oni2.aeinstaller.backend.Settings.Platform;
    4344import net.oni2.aeinstaller.backend.SizeFormatter;
    44 import net.oni2.aeinstaller.backend.depot.DepotCacheUpdateProgressListener;
    4545import net.oni2.aeinstaller.backend.depot.DepotManager;
    4646import net.oni2.aeinstaller.backend.mods.Mod;
     
    165165        private void execDepotUpdate(final BackgroundEvent evt) {
    166166                if (!Settings.getInstance().isOfflineMode()) {
     167                        long start = new Date().getTime();
     168
    167169                        try {
    168                                 DepotManager.getInstance().updateInformation(false,
    169                                                 new DepotCacheUpdateProgressListener() {
    170 
    171                                                         @Override
    172                                                         public void cacheUpdateProgress(String stepName,
    173                                                                         int current, int total) {
    174                                                                 evt.setProgressEnd(total);
    175                                                                 evt.setProgressValue(current);
    176                                                                 evt.setProgressMessage(stepName);
    177                                                         }
    178                                                 });
     170                                DepotManager.getInstance().updateInformation(false);
    179171                        } catch (Exception e) {
    180172                                e.printStackTrace();
    181173                        }
     174
     175                        System.out.println("Took: " + (new Date().getTime() - start)
     176                                        + " msec");
    182177                }
    183178
Note: See TracChangeset for help on using the changeset viewer.