mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-20 09:03:24 +00:00
Add expected start/end time columns
This commit is contained in:
parent
d1f11c7de7
commit
53c032f9f6
8 changed files with 99 additions and 18 deletions
|
|
@ -122,13 +122,19 @@ static bool ignoreDeadlineExceeded(char *path) {
|
|||
|
||||
/* **************************************************** */
|
||||
|
||||
bool ThreadPool::queueJob(ThreadedActivity *ta, char *path, NetworkInterface *iface, time_t deadline) {
|
||||
bool ThreadPool::queueJob(ThreadedActivity *ta, char *path, NetworkInterface *iface, time_t scheduled_time, time_t deadline) {
|
||||
QueuedThreadData *q;
|
||||
ThreadedActivityStats *stats = ta->getThreadedActivityStats(iface, true);
|
||||
|
||||
if(isTerminating())
|
||||
return(false);
|
||||
|
||||
if(stats) {
|
||||
stats->clearErrors();
|
||||
stats->setScheduledTime(scheduled_time);
|
||||
stats->setDeadline(deadline);
|
||||
}
|
||||
|
||||
if(!ta->isQueueable(iface)) {
|
||||
if(stats) {
|
||||
if(ta->get_state(iface) == threaded_activity_state_queued) {
|
||||
|
|
@ -141,9 +147,6 @@ bool ThreadPool::queueJob(ThreadedActivity *ta, char *path, NetworkInterface *if
|
|||
return(false); /* Task still running or already queued, don't re-queue it */
|
||||
}
|
||||
|
||||
if(stats)
|
||||
stats->clearErrors();
|
||||
|
||||
q = new QueuedThreadData(ta, path, iface, deadline);
|
||||
|
||||
if(!q) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue