Skip to content

Commit

Permalink
OLT polling stats moved to separate directory
Browse files Browse the repository at this point in the history
  • Loading branch information
nightflyza committed Jun 13, 2022
1 parent b9b86f1 commit 55f263f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ exports/pondata/onucache/*
exports/pondata/signals/*
exports/pondata/temp/*
exports/pondata/uptime/*
exports/pondata/races/*

2 changes: 1 addition & 1 deletion RELEASE
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.8 rev 8546
1.2.8 rev 8547
4 changes: 2 additions & 2 deletions api/libs/api.ponizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ class PONizer {
const MACDEVIDCACHE_EXT = OLTAttractor::MACDEVIDCACHE_EXT;
const ONUSIG_PATH = OLTAttractor::ONUSIG_PATH;
const POLL_PID = 'oltpoll_';
const POLL_STATS = 'exports/PONYRUN_';
const POLL_STATS = 'exports/pondata/races/PONYRUN_';
const POLL_LOG = 'exports/oltpoll.log';

/**
Expand Down Expand Up @@ -796,7 +796,7 @@ public function pollOltSignal($oltid, $quiet = false) {
if (method_exists($collector, $collectorMethod)) {
$this->logPoll($oltid, 'RUNNING: PON HAL collector method:' . $collectorName . '->' . $collectorMethod);
$collector->$collectorMethod();
$this->logPoll($oltid, 'ENDED: PON HAL collector method:' . $collectorName . '->' . $collectorMethod);
$this->logPoll($oltid, 'COMPLETED: PON HAL collector method:' . $collectorName . '->' . $collectorMethod);
} else {
$this->logPoll($oltid, 'FAILED run PON HAL collector:' . $collectorName . '->' . $collectorMethod . ' METHOD_NOT_EXISTS');
}
Expand Down
2 changes: 1 addition & 1 deletion config/alter.ini
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ CONDET_IN_PROFILE=0
;Is custom maps module enabled?
CUSTMAP_ENABLED=0
;Is PON support enabled?
PON_ENABLED=1
PON_ENABLED=0
;Is Cumulative discounts enabled? Possible values: 0 - disabled, 1- enabled + textlog, 2-additional SQL logging (slow, only for debug)
CUD_ENABLED=0
;Cumulative discounts period
Expand Down
Empty file modified exports/pondata/races/placeholder
100644 → 100755
Empty file.

0 comments on commit 55f263f

Please sign in to comment.