Skip to content

Commit

Permalink
Small fix with table headings in CSV And TLS version in app
Browse files Browse the repository at this point in the history
  • Loading branch information
co60ca committed Sep 18, 2018
1 parent c03a335 commit 4a826e1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Server Application/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func writeCSV(csvType int, d Data, experimentName string) bool {
fmt.Fprintf(writer, "\n\"%s\",%f,%f,%d", data.Datetime, data.Data[0], data.Data[1], data.Paused)
}
} else if csvType == CSV_ACCELERATION {
fmt.Fprintf(writer, "\"Datetime\",\"realx\",\"realy\"")
fmt.Fprintf(writer, "\"Datetime\",\"realx\",\"realy\",\"realz\"")
for _, data := range d.AccelerometerData {
fmt.Fprintf(writer, "\n\"%s\",%f,%f,%f", data.Datetime, data.Data[0], data.Data[1], data.Data[2])
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ private SSLContext getSingleSSLContext() {
TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
tmf.init(keyStore);

SSLContext context = SSLContext.getInstance("TLS");
SSLContext context = SSLContext.getInstance("TLSv1.2");
context.init(null, tmf.getTrustManagers(), null);
return context;
} catch (Exception e) {
Expand Down

0 comments on commit 4a826e1

Please sign in to comment.