Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dcdb
dcdb
Commits
6ac6d9ee
Commit
6ac6d9ee
authored
Nov 27, 2018
by
Michael Ott
Browse files
Also print units in header if no conversion is performed
parent
b777d38b
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/dcdbquery/query.cpp
View file @
6ac6d9ee
...
...
@@ -98,6 +98,8 @@ void DCDBQuery::genOutput(std::list<DCDB::SensorDataStoreReading> &results, quer
}
if
(
it
->
second
.
unit
!=
DCDB
::
Unit_None
)
{
std
::
cout
<<
" ("
<<
DCDB
::
UnitConv
::
toString
(
it
->
second
.
unit
)
<<
")"
;
}
else
if
(
baseUnit
!=
DCDB
::
Unit_None
)
{
std
::
cout
<<
" ("
<<
DCDB
::
UnitConv
::
toString
(
baseUnit
)
<<
")"
;
}
}
std
::
cout
<<
std
::
endl
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment