the first part of reimplementing has been done

now we have app object and singletons are only: log logn plugin and app



git-svn-id: svn://ttmath.org/publicrep/winix/trunk@628 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2010-08-10 16:12:50 +00:00
parent 6897192364
commit 217cf1420b
191 changed files with 9529 additions and 7250 deletions

View File

@@ -9,7 +9,7 @@
#include <ctime>
#include "templates.h"
#include "../core/data.h"
namespace TemplatesFunctions
@@ -19,7 +19,7 @@ namespace TemplatesFunctions
void uptime_more_than_one_day(Info & i)
{
time_t up = time(0) - data.system_start;
time_t up = time(0) - system->system_start;
time_t days = up / 60 / 60 / 24;
i.res = ( days > 1 );
@@ -28,7 +28,7 @@ void uptime_more_than_one_day(Info & i)
void uptime_days(Info & i)
{
time_t up = time(0) - data.system_start;
time_t up = time(0) - system->system_start;
time_t days = up / 60 / 60 / 24;
i.out << days;
@@ -39,7 +39,7 @@ void uptime_hours(Info & i)
{
char buf[50];
time_t sec = time(0) - data.system_start;
time_t sec = time(0) - system->system_start;
time_t min = sec / 60;
time_t hour = min / 60;