diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-01-23 11:34:57 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-01-23 11:34:57 +0100 |
commit | b9ff8719ca9de8d199cd96959d8e63db9bdc10f7 (patch) | |
tree | 73e17ca797b515ace90d0e62acf18d6e34d05fa1 | |
parent | b7cdca615db89454b0f742fe603f723ce5ed7c29 (diff) | |
download | dabmux-b9ff8719ca9de8d199cd96959d8e63db9bdc10f7.tar.gz dabmux-b9ff8719ca9de8d199cd96959d8e63db9bdc10f7.tar.bz2 dabmux-b9ff8719ca9de8d199cd96959d8e63db9bdc10f7.zip |
Fix lto indication in startup screen
-rw-r--r-- | src/utils.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/utils.cpp b/src/utils.cpp index cc89c7b..ab3d75a 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -489,7 +489,16 @@ void printEnsemble(dabEnsemble* ensemble) etiLog.log(info, " (0x%x)", ensemble->label.flag()); etiLog.log(info, " mode: %u", ensemble->mode); - etiLog.log(info, " lto: %f", 2.0 * ensemble->lto); + + if (ensemble->lto_auto) { + time_t now = time(NULL); + struct tm* ltime = localtime(&now); + time_t now2 = timegm(ltime); + etiLog.log(info, " lto: %2.1f hours", 0.5 * (now2 - now) / 1800); + } + else { + etiLog.log(info, " lto: %2.1f hours", 0.5 * ensemble->lto); + } etiLog.log(info, " intl. table. %d", ensemble->international_table); } |