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
pull/1/head
Tatsuhiro Tsujikawa 2008-02-12 13:45:54 +00:00
parent 1700f5c1bc
commit bc1f1bdf35
3 changed files with 9 additions and 1 deletions

View File

@ -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> 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Included RecoverableException.h to fix compilation error. Included RecoverableException.h to fix compilation error.

View File

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

View File

@ -139,6 +139,7 @@
#define MSG_SOMETHING_MISSING_IN_TORRENT _("Missing %s in torrent metainfo.") #define MSG_SOMETHING_MISSING_IN_TORRENT _("Missing %s in torrent metainfo.")
#define MSG_NULL_TRACKER_RESPONSE _("Tracker returned null data.") #define MSG_NULL_TRACKER_RESPONSE _("Tracker returned null data.")
#define MSG_WINSOCK_INIT_FAILD _("Windows socket library initialization failed") #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_TIME_OUT _("Timeout.")
#define EX_INVALID_CHUNK_SIZE _("Invalid chunk size.") #define EX_INVALID_CHUNK_SIZE _("Invalid chunk size.")