master
Timothy Pearson 8 years ago
parent e4fcc7fd8f
commit 1edd64c62f

@ -8,4 +8,4 @@ include_HEADERS = tqtrla.h
libtqtrla_la_SOURCES = tqtrla.cpp libtqtrla_la_SOURCES = tqtrla.cpp
libtqtrla_la_LIBADD = $(LIB_TDEIO) $(LIB_TDEUI) libtqtrla_la_LIBADD = $(LIB_TDEIO) $(LIB_TDEUI)
libtqtrla_la_LDFLAGS = -version-info $(lt_current):$(lt_revision):$(lt_age) -no-undefined $(all_libraries) $(LIB_TDEPARTS) -ltdekrbsocket libtqtrla_la_LDFLAGS = -version-info $(lt_current):$(lt_revision):$(lt_age) -no-undefined $(all_libraries) $(LIB_TDEPARTS) -ltdeldap -ltdekrbsocket

@ -299,7 +299,7 @@ void SysCtlSocket::commandLoop() {
if (databaseActivityCursor.next()) { if (databaseActivityCursor.next()) {
TQSqlRecord *buffer = databaseActivityCursor.primeUpdate(); TQSqlRecord *buffer = databaseActivityCursor.primeUpdate();
if (terminationOffset > -2) { if (terminationOffset > -2) {
buffer->setValue("terminate", terminationTime.toTime_t()); buffer->setValue("terminate", (TQ_ULLONG)terminationTime.toTime_t());
} }
else { else {
buffer->setValue("terminate", 0); buffer->setValue("terminate", 0);

@ -383,7 +383,7 @@ void AuthSocket::updateStatistics(int eventType) {
} }
TQString userID = m_authenticatedUserName + "@" + m_authenticatedRealmName; TQString userID = m_authenticatedUserName + "@" + m_authenticatedRealmName;
TQSqlRecord *buffer = m_databaseStatisticsCursor->primeInsert(); TQSqlRecord *buffer = m_databaseStatisticsCursor->primeInsert();
buffer->setValue("timestamp", TQDateTime::currentDateTime().toTime_t()); buffer->setValue("timestamp", (TQ_ULLONG)TQDateTime::currentDateTime().toTime_t());
buffer->setValue("eventtypeid", eventType); buffer->setValue("eventtypeid", eventType);
buffer->setValue("arbiter", m_localMachineFQDN); buffer->setValue("arbiter", m_localMachineFQDN);
buffer->setValue("stationid", m_stationID); buffer->setValue("stationid", m_stationID);
@ -567,7 +567,7 @@ void AuthSocket::commandLoop() {
buffer->setValue("arbiter", m_localMachineFQDN); buffer->setValue("arbiter", m_localMachineFQDN);
buffer->setValue("username", m_authenticatedUserName); buffer->setValue("username", m_authenticatedUserName);
buffer->setValue("realmname", m_authenticatedRealmName); buffer->setValue("realmname", m_authenticatedRealmName);
buffer->setValue("logontime", TQDateTime::currentDateTime().toTime_t()); buffer->setValue("logontime", (TQ_ULLONG)TQDateTime::currentDateTime().toTime_t());
buffer->setValue("serviceid", m_serviceID); buffer->setValue("serviceid", m_serviceID);
buffer->setValue("terminate", 0); buffer->setValue("terminate", 0);
m_databaseActivityCursor->insert(); m_databaseActivityCursor->insert();
@ -658,7 +658,7 @@ void AuthSocket::commandLoop() {
buffer->setValue("arbiter", m_localMachineFQDN); buffer->setValue("arbiter", m_localMachineFQDN);
buffer->setValue("username", m_authenticatedUserName); buffer->setValue("username", m_authenticatedUserName);
buffer->setValue("realmname", m_authenticatedRealmName); buffer->setValue("realmname", m_authenticatedRealmName);
buffer->setValue("logontime", TQDateTime::currentDateTime().toTime_t()); buffer->setValue("logontime", (TQ_ULLONG)TQDateTime::currentDateTime().toTime_t());
buffer->setValue("serviceid", m_serviceID); buffer->setValue("serviceid", m_serviceID);
buffer->setValue("terminate", 0); buffer->setValue("terminate", 0);
m_databaseActivityCursor->insert(); m_databaseActivityCursor->insert();
@ -804,7 +804,7 @@ AuthServer::AuthServer(TQObject* parent) :
// Update statistics // Update statistics
TQSqlCursor databaseStatisticsCursor("statistics", TRUE, m_database); TQSqlCursor databaseStatisticsCursor("statistics", TRUE, m_database);
TQSqlRecord *buffer = databaseStatisticsCursor.primeInsert(); TQSqlRecord *buffer = databaseStatisticsCursor.primeInsert();
buffer->setValue("timestamp", TQDateTime::currentDateTime().toTime_t()); buffer->setValue("timestamp", (TQ_ULLONG)TQDateTime::currentDateTime().toTime_t());
buffer->setValue("eventtypeid", STATISTICS_SERVER_START_EVENT); buffer->setValue("eventtypeid", STATISTICS_SERVER_START_EVENT);
databaseStatisticsCursor.insert(); databaseStatisticsCursor.insert();
@ -826,7 +826,7 @@ AuthServer::~AuthServer() {
// Update statistics // Update statistics
TQSqlCursor databaseStatisticsCursor("statistics", TRUE, m_database); TQSqlCursor databaseStatisticsCursor("statistics", TRUE, m_database);
TQSqlRecord *buffer = databaseStatisticsCursor.primeInsert(); TQSqlRecord *buffer = databaseStatisticsCursor.primeInsert();
buffer->setValue("timestamp", TQDateTime::currentDateTime().toTime_t()); buffer->setValue("timestamp", (TQ_ULLONG)TQDateTime::currentDateTime().toTime_t());
buffer->setValue("eventtypeid", STATISTICS_SERVER_STOP_EVENT); buffer->setValue("eventtypeid", STATISTICS_SERVER_STOP_EVENT);
databaseStatisticsCursor.insert(); databaseStatisticsCursor.insert();

Loading…
Cancel
Save