Skip to content

Commit

Permalink
Small change in CloseExperidedSubscriptions (performance).
Browse files Browse the repository at this point in the history
  • Loading branch information
ksooo committed Jan 7, 2018
1 parent 825b964 commit fdbeb4f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Tvheadend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1670,10 +1670,9 @@ void CTvheadend::CloseExpiredSubscriptions()
for (auto *dmx : m_dmx)
{
if (Settings::GetInstance().GetPreTunerCloseDelay() &&
dmx->GetLastUse() + Settings::GetInstance().GetPreTunerCloseDelay() < time(nullptr))
dmx->GetLastUse() + Settings::GetInstance().GetPreTunerCloseDelay() < std::time(nullptr))
{
Logger::Log(LogLevel::LEVEL_TRACE, "untuning channel %u on subscription %u",
m_channels[dmx->GetChannelId()].GetNum(), dmx->GetSubscriptionId());
Logger::Log(LogLevel::LEVEL_TRACE, "closing expired subscription %u", dmx->GetSubscriptionId());
dmx->Close();
}
}
Expand Down

0 comments on commit fdbeb4f

Please sign in to comment.