Merge pull request #109 from surligas/fix_noaa_filename

Change NOAA output naming scheme
This commit is contained in:
Manolis Surligas 2017-09-19 14:14:01 +03:00 committed by GitHub
commit 93025a1d83
1 changed files with 0 additions and 12 deletions

View File

@ -92,19 +92,7 @@ namespace gr
void
noaa_apt_sink_impl::init_png ()
{
/* check for the current UTC time */
std::chrono::system_clock::time_point p2 =
std::chrono::system_clock::now ();
char buffer[30];
std::time_t t2 = std::chrono::system_clock::to_time_t (p2);
struct tm * timeinfo;
timeinfo = std::gmtime (&t2);
std::strftime (buffer, 30, "%FT%H-%M-%S", timeinfo);
std::string fn (d_filename_png);
fn.append("_");
fn.append(buffer);
fn.append(".png");
if (d_split) {
d_images_per_frame = 2;