printf "Check initial admin list... "
-RES=`"$SGCONFPATH/sgconf" -s localhost -p 5555 -u admin -w 123456 --get-admins`
+RES=`"$SGCONFPATH/sgconf" -s 127.0.0.1 -p 5555 -u admin -w 123456 --get-admins`
if [ "$?" != "0" ]
then
#include <cstring>
-extern volatile time_t stgTime; // So sad...
-
using STG::PARSER::SEND_MESSAGE;
const char * SEND_MESSAGE::tag = "Message";
printfd(__FILE__, "User not found. %s\n", m_logins[i].c_str());
continue;
}
- m_msg.header.creationTime = static_cast<unsigned int>(stgTime);
+ m_msg.header.creationTime = static_cast<unsigned int>(time(NULL));
m_user->AddMessage(&m_msg);
m_result = res_ok;
}