Commit 9acef0262e941be1a79f01be0da5b21de2dd55f7
1 parent
6f7bd6c1
Add units to times in print() method.
Showing
1 changed file
with
4 additions
and
2 deletions
inst/cta/src/GCTAObservation.cpp
| ... | ... | @@ -695,12 +695,14 @@ std::string GCTAObservation::print(void) const |
| 695 | 695 | |
| 696 | 696 | // Append header |
| 697 | 697 | result.append("=== GCTAObservation ==="); |
| 698 | + | |
| 699 | + // Append informations | |
| 698 | 700 | result.append("\n"+parformat("Name")+name()); |
| 699 | 701 | result.append("\n"+parformat("Identifier")+id()); |
| 700 | 702 | result.append("\n"+parformat("Instrument")+instrument()); |
| 701 | 703 | result.append("\n"+parformat("Statistics")+statistics()); |
| 702 | - result.append("\n"+parformat("Ontime")+str(ontime())); | |
| 703 | - result.append("\n"+parformat("Livetime")+str(livetime())); | |
| 704 | + result.append("\n"+parformat("Ontime")+str(ontime())+" s"); | |
| 705 | + result.append("\n"+parformat("Livetime")+str(livetime())+" s"); | |
| 704 | 706 | result.append("\n"+parformat("Deadtime correction")+str(m_deadc)); |
| 705 | 707 | |
| 706 | 708 | // Append pointing | ... | ... |