Skip to content

Commit

Permalink
Changed column separator in data file from Tab to 4 spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
NIA committed Mar 17, 2015
1 parent 9ac9810 commit 0f24f7e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/filewriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ void FileWriter::receiveData(TimeStampsVector t, DataVector d) {
for(unsigned ch = 0; ch < CHANNELS_NUM; ++ch) {
number.setNum(item.byChannel[ch]);
allData += number;
allData += '\t';
if (ch < CHANNELS_NUM-1) {
allData += " "; // 4 spaces except the last column
}
}
allData += '\n';
}
Expand All @@ -96,7 +98,14 @@ void FileWriter::setAutoWriteEnabled(bool enabled) {
autoWrite = enabled;
if (enabled) {
// TODO: check if can write and disable autoWrite if cannot



// BUG: somehow start time will be incorrect when enabling after disabling (see https://github.com/NIA/seismoreg/issues/9)




if (! waitingQueue.isEmpty()) {
writeNow();
}
Expand Down

0 comments on commit 0f24f7e

Please sign in to comment.