Revision a7dee730 scheduler.cpp

View differences:

scheduler.cpp
66 66
  //     (this is true if it was written by writeDB)
67 67
  std::ifstream i(dbfile.c_str());
68 68
  if (!i) {
69
    std::cerr << "Warning: failed to open database file " << dbfile << "for reading:\n"
69
    std::cerr << "Warning: failed to open database file " << dbfile << " for reading:\n"
70 70
	      << strerror(errno) << "\n";
71 71
    writeDB();
72 72
  }
......
81 81
  // Write the db file
82 82
  std::ofstream o(dbfile.c_str());
83 83
  if (!o) {
84
    std::cerr << "Warning: failed to open database file " << dbfile << "for writing:\n"
84
    std::cerr << "Warning: failed to open database file " << dbfile << " for writing:\n"
85 85
	      << strerror(errno) << "\n";
86 86
    return;
87 87
  }
......
135 135
    startRecording(r);
136 136

  
137 137
    recordings.pop_front();
138
    writeDB();
138 139
  }
139 140
}
140 141

  

Also available in: Unified diff