endif ( BUILD_MOD_STORE_FIREBIRD OR BUILD_ALL_LIBS )
if ( BUILD_MOD_PING OR BUILD_ALL_LIBS )
- set ( BUILD_LIB_PINGER ON )
+ set ( BUILD_LIB_PINGER ON )
endif ( BUILD_MOD_PING OR BUILD_ALL_LIBS )
if ( BUILD_MOD_SMUX OR BUILD_ALL_LIBS )
elseif ( ${CMAKE_SYSTEM_NAME} STREQUAL "Darwin" )
add_definitions ( -DDARWIN )
if ( BUILD_LIB_IBPP )
- add_definitions ( -DIBPP_DARWIN )
+ add_definitions ( -DIBPP_DARWIN )
endif ( BUILD_LIB_IBPP )
else ()
message ( WARNING "Unsupported system: '${CMAKE_SYSTEM_NAME}'" )
#include <unistd.h> // access
-extern volatile time_t stgTime;
-
namespace STG
{
//-----------------------------------------------------------------------------
inline
UserProperty<T>::UserProperty(T& val)
: value(val),
- modificationTime(stgTime),
+ modificationTime(time(NULL)),
beforeNotifiers(),
afterNotifiers()
{
inline
void UserProperty<T>::ModifyTime() noexcept
{
- modificationTime = stgTime;
+ modificationTime = time(NULL);
}
//-----------------------------------------------------------------------------
template <typename T>
(*ni++)->Notify(oldVal, rvalue);
value = rvalue;
- modificationTime = stgTime;
+ modificationTime = time(NULL);
ni = afterNotifiers.begin();
while (ni != afterNotifiers.end())
plugin_mgr.cpp
settings_impl.cpp
stg_timer.cpp
+ timer_impl.cpp
store_loader.cpp
traffcounter_impl.cpp
user_property.cpp )
if (newTariff)
{
const auto currentTariff = ptr->GetTariff();
- std::string message = currentTariff->TariffChangeIsAllowed(*newTariff, stgTime);
+ std::string message = currentTariff->TariffChangeIsAllowed(*newTariff, time(NULL));
if (message.empty())
{
if (ptr->GetProperties().tariffName.Get() != tariff)
if (newTariff)
{
const auto currentTariff = u->GetTariff();
- std::string message = currentTariff->TariffChangeIsAllowed(*newTariff, stgTime);
+ std::string message = currentTariff->TariffChangeIsAllowed(*newTariff, time(NULL));
if (message.empty())
{
if (u->GetProperties().tariffName.Set(tariff, *admin, login, *store, comment))