Tatsuhiro Tsujikawa 18 年之前
父節點
當前提交
2b07d13be3

+ 2 - 2
src/Makefile.am

@@ -227,9 +227,9 @@ libaria2c_a_SOURCES = $(SRCS)
 aria2c_LDADD = libaria2c.a @LIBINTL@ @ALLOCA@ @LIBGNUTLS_LIBS@\
 	@LIBGCRYPT_LIBS@ @OPENSSL_LIBS@ @XML_LIBS@ @LIBARES_LIBS@\
 	@LIBCARES_LIBS@
-aria2c_LDFLAGS = -pg
+#aria2c_LDFLAGS = -pg
 AM_CPPFLAGS =  -Wall\
 	-I../lib -I../intl -I$(top_srcdir)/intl\
 	@LIBGNUTLS_CFLAGS@ @LIBGCRYPT_CFLAGS@ @OPENSSL_CFLAGS@ @XML_CPPFLAGS@\
 	@LIBARES_CPPFLAGS@ @LIBCARES_CPPFLAGS@\
-	-D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"$(localedir)\" @DEFS@  -pg
+	-D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"$(localedir)\" @DEFS@ # -pg

+ 2 - 2
src/Makefile.in

@@ -668,12 +668,12 @@ aria2c_LDADD = libaria2c.a @LIBINTL@ @ALLOCA@ @LIBGNUTLS_LIBS@\
 	@LIBGCRYPT_LIBS@ @OPENSSL_LIBS@ @XML_LIBS@ @LIBARES_LIBS@\
 	@LIBCARES_LIBS@
 
-aria2c_LDFLAGS = -pg
+#aria2c_LDFLAGS = -pg
 AM_CPPFLAGS = -Wall\
 	-I../lib -I../intl -I$(top_srcdir)/intl\
 	@LIBGNUTLS_CFLAGS@ @LIBGCRYPT_CFLAGS@ @OPENSSL_CFLAGS@ @XML_CPPFLAGS@\
 	@LIBARES_CPPFLAGS@ @LIBCARES_CPPFLAGS@\
-	-D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"$(localedir)\" @DEFS@  -pg
+	-D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"$(localedir)\" @DEFS@ # -pg
 
 all: all-am
 

+ 1 - 1
src/PeerListenCommand.cc

@@ -98,7 +98,7 @@ bool PeerListenCommand::execute() {
 	}
       }
     } catch(RecoverableException* ex) {
-      logger->error("CUID#%d - error in accepting connection", ex, cuid);
+      logger->debug("CUID#%d - error in accepting connection", ex, cuid);
       delete ex;
     }		    
   }

+ 2 - 2
src/TorrentConsoleDownloadEngine.cc

@@ -49,8 +49,8 @@ void TorrentConsoleDownloadEngine::sendStatistics() {
     printf("Download Completed.");
   } else {
     printf("%s/%sB %d%% %s D:%.2f",
-	   Util::llitos(downloadLength, true).c_str(),
-	   Util::llitos(totalLength, true).c_str(),
+	   Util::abbrevSize(downloadLength).c_str(),
+	   Util::abbrevSizellitos(totalLength).c_str(),
 	   (totalLength == 0 ?
 	    0 : (int)((downloadLength*100)/totalLength)),
 	   avgSpeed == 0 ? "-" : Util::secfmt(eta).c_str(),

+ 0 - 1
src/TrackerSegmentManFactory.cc

@@ -40,6 +40,5 @@ SegmentManHandle TrackerSegmentManFactory::createNewInstance()
   SegmentManHandle segmentMan = new SegmentMan();
   segmentMan->diskWriter = new ByteArrayDiskWriter();
   segmentMan->option = _option;
-  segmentMan->ufilename = "[tracker.announce]";
   return segmentMan;
 }

+ 1 - 0
src/TrackerWatcherCommand.cc

@@ -88,6 +88,7 @@ Command* TrackerWatcherCommand::createCommand() {
 Command* TrackerWatcherCommand::createRequestCommand(const string& url)
 {
   RequestGroupHandle rg = new RequestGroup(url, e->option);
+  rg->setUserDefinedFilename("[tracker.announce]");
   rg->isTorrent = true;
   rg->setSegmentManFactory(new TrackerSegmentManFactory(e->option));
   e->_requestGroupMan->addRequestGroup(rg);