Skip to content

Commit

Permalink
Removed some debugging messages
Browse files Browse the repository at this point in the history
  • Loading branch information
peterkvt80 committed Nov 1, 2016
1 parent e655973 commit 55d0b73
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions filemonitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ void FileMonitor::run()
DIR *dp;
struct dirent *dirp;

std::cerr << "tick ";

// Open the directory
if ( (dp = opendir(path.c_str())) == NULL)
{
Expand All @@ -79,7 +77,7 @@ void FileMonitor::run()
{
// Select only pages that might be teletext. tti or ttix at the moment.
char* p=strcasestr(dirp->d_name,".tti");
std::cerr << path << "/" << dirp->d_name << std::endl;
// std::cerr << path << "/" << dirp->d_name << std::endl;
if (p)
{
std::string name;
Expand All @@ -92,7 +90,7 @@ void FileMonitor::run()
stat(name.c_str(), &attrib); // get the attributes of the file
clock = gmtime(&(attrib.st_mtime)); // Get the last modified time and put it into the time structure

std::cerr << path << "/" << dirp->d_name << std::dec << " time:" << clock->tm_hour << ":" << clock->tm_min << std::endl;
std::cerr << path << "/" << dirp->d_name << std::dec << " time:" << std::setw(2) << clock->tm_hour << ":" << std::setw(2) << clock->tm_min << std::endl;
// Now we want to process changes
// 1) Is it a new page? Then add it.
TTXPageStream* p=_pageList->Locate(name);
Expand Down

0 comments on commit 55d0b73

Please sign in to comment.