Fix Windows build, which complained about possible loss of data converting

from a double to a time_t.  I removed nstime_to_secs() and grab the
seconds portion of the nstime (which is a time_t), since that's all the
precision needed in the code right now anyway.


svn path=/trunk/; revision=35293
This commit is contained in:
Stephen Fisher 2010-12-29 00:29:05 +00:00
parent 73f5cb2503
commit a6caff484f
1 changed files with 1 additions and 1 deletions

View File

@ -1377,7 +1377,7 @@ static void channel_draw(rtp_channel_info_t* rci)
rci->draw_area->allocation.height-HEIGHT_TIME_LABEL+4);
if(GTK_TOGGLE_BUTTON(cb_view_as_time_of_day)->active) {
seconds = nstime_to_sec(&rci->start_time_abs) + i * MULT / SAMPLE_RATE;
seconds = rci->start_time_abs.secs + i * MULT / SAMPLE_RATE;
timestamp = localtime(&seconds);
g_snprintf(label_string, MAX_TIME_LABEL, "%02d:%02d:%02d", timestamp->tm_hour, timestamp->tm_min, timestamp->tm_sec);
} else {