瀏覽代碼

2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>

	Fixed typo in log message and define the message in message.h
	* src/TimedHaltCommand.cc
	* src/message.h
Tatsuhiro Tsujikawa 17 年之前
父節點
當前提交
bc1f1bdf35
共有 3 個文件被更改,包括 9 次插入1 次删除
  1. 6 0
      ChangeLog
  2. 2 1
      src/TimedHaltCommand.cc
  3. 1 0
      src/message.h

+ 6 - 0
ChangeLog

@@ -1,3 +1,9 @@
+2008-02-12  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>
+
+	Fixed typo in log message and define the message in message.h
+	* src/TimedHaltCommand.cc
+	* src/message.h
+
 2008-02-11  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>
 
 	Included RecoverableException.h to fix compilation error.

+ 2 - 1
src/TimedHaltCommand.cc

@@ -36,6 +36,7 @@
 #include "DownloadEngine.h"
 #include "RequestGroupMan.h"
 #include "Logger.h"
+#include "message.h"
 
 namespace aria2 {
 
@@ -55,7 +56,7 @@ void TimedHaltCommand::preProcess()
 void TimedHaltCommand::process()
 {
   if(!_e->isHaltRequested()) {
-    logger->notice("%d minutes passed. Stopping application.", _interval/60);
+    logger->notice(MSG_TIME_HAS_PASSED, _interval/60);
     _e->requestHalt();
   }
 }

+ 1 - 0
src/message.h

@@ -139,6 +139,7 @@
 #define MSG_SOMETHING_MISSING_IN_TORRENT _("Missing %s in torrent metainfo.")
 #define MSG_NULL_TRACKER_RESPONSE _("Tracker returned null data.")
 #define MSG_WINSOCK_INIT_FAILD _("Windows socket library initialization failed")
+#define MSG_TIME_HAS_PASSED _("%d minute(s) has passed. Stopping application.")
 
 #define EX_TIME_OUT _("Timeout.")
 #define EX_INVALID_CHUNK_SIZE _("Invalid chunk size.")