Skip to content

Commit 06403f0

Browse files
committed
Fix lowercase units and enable build for any push.
1 parent 412fb51 commit 06403f0

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.github/workflows/docker-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
#schedule:
1010
# - cron: '38 16 * * *'
1111
push:
12-
#branches: [ master ]
12+
branches: [ master ]
1313
# Publish semver tags as releases.
1414
tags: [ '*' ]
1515
pull_request:

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ENV WORK_DIR /usr/local/src
66
ENV INSTALL_DIR /opt/seiscomp
77
ENV REPO_PATH https://github.com/SeisComP
88
#ENV TAG master
9-
ENV TAG 5.1.2
9+
ENV TAG 5.1.1
1010
ENV D "-DSC_GLOBAL_GUI=ON \
1111
#-DSC_IPGPADDONS_GUI_APPS=ON \
1212
-DSC_TRUNK_DB_MYSQL=ON \

apps/eew/scvsmag/timeline.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,14 @@ bool Timeline::feed(const DataModel::VS::Envelope *env) {
137137
cha->waveformID().locationCode(),
138138
cha->waveformID().channelCode(), env->timestamp());
139139
Processing::WaveformProcessor::SignalUnit signalUnit;
140+
string gainUnit = stream->gainUnit();
141+
std::transform(gainUnit.begin(), gainUnit.end(), gainUnit.begin(),
142+
::toupper);
143+
140144
if ( stream ) {
141145
bool unitOK = false;
142146
try {
143-
unitOK = signalUnit.fromString(stream->gainUnit());
147+
unitOK = signalUnit.fromString(gainUnit);
144148
} catch ( ... ) {
145149
}
146150
if ( !unitOK ) {

0 commit comments

Comments
 (0)