summaryrefslogtreecommitdiffstats
path: root/kppp/accounting.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kppp/accounting.cpp')
-rw-r--r--kppp/accounting.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/kppp/accounting.cpp b/kppp/accounting.cpp
index 2d7ab5d7..a01854a0 100644
--- a/kppp/accounting.cpp
+++ b/kppp/accounting.cpp
@@ -72,7 +72,7 @@ AccountingBase::AccountingBase(TQObject *parent) :
_total(0),
_session(0)
{
- TQDate dt = TQDate::tqcurrentDate();
+ TQDate dt = TQDate::currentDate();
LogFileName = TQString("%1-%2.log")
.tqarg(TQDate::shortMonthName(dt.month()))
.tqarg(dt.year(), 4);
@@ -233,7 +233,7 @@ void Accounting::timerEvent(TQTimerEvent *t) {
double newLen;
double connect_time = difftime(time(0), start_time);
- rules.getActiveRule(TQDateTime::tqcurrentDateTime(), connect_time, newCosts, newLen);
+ rules.getActiveRule(TQDateTime::currentDateTime(), connect_time, newCosts, newLen);
if(newLen < 1) { // changed to < 1
slotStop();
return; // no default rule found
@@ -279,7 +279,7 @@ void Accounting::slotStart() {
_lastcosts = 0.0;
_lastlen = 0.0;
_session = rules.perConnectionCosts();
- rules.setStartTime(TQDateTime::tqcurrentDateTime());
+ rules.setStartTime(TQDateTime::currentDateTime());
acct_timer_id = startTimer(1);
if(UPDATE_TIME > 0)
update_timer_id = startTimer(UPDATE_TIME);