Skip to content

Commit cb4c7f5

Browse files
committed
fix heading to pbh
1 parent aba7447 commit cb4c7f5

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/main/java/org/linktechtips/Main.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public void doChecks() {
240240
dataSeg6 = "::::::::::";
241241
}
242242

243-
dataSeg7 = String.format("::::::%s:%s", Support.sprintGmt(tempClient.getStartTime()), tempClient.getHeading());
243+
dataSeg7 = String.format("::::::%s:%s", Support.sprintGmt(tempClient.getStartTime()), tempClient.getPbh());
244244
wzfile.write(String.format("%s:%s:%s:%s:%s:%s:%s\n", dataSeg1, dataSeg2, dataSeg3, dataSeg4, dataSeg5, dataSeg6, dataSeg7).getBytes());
245245
}
246246
wzfile.write("!SERVERS\n".getBytes());
@@ -292,7 +292,7 @@ public void doChecks() {
292292
} else {
293293
dataSeg4 = ",\"plan\":{}";
294294
}
295-
dataSeg5 = String.format(",\"heading\":%s,\"transponder\":%d,\"facilitytype\":%d", tempClient.getHeading(), tempClient.getTransponder(), tempClient.getFacilityType());
295+
dataSeg5 = String.format(",\"pbh\":%s,\"transponder\":%d,\"facilitytype\":%d", tempClient.getPbh(), tempClient.getTransponder(), tempClient.getFacilityType());
296296

297297
dataSeg6 = String.format(",\"starttime\":%s},", Support.sprintGmt(tempClient.getStartTime()));
298298
wzfile.write(String.format("%s%s%s%s%s%s", dataSeg1, dataSeg2, dataSeg3, dataSeg4, dataSeg5, dataSeg6).getBytes());
@@ -526,7 +526,7 @@ void readCert() {
526526
}
527527
} else if (Objects.equals(mysqlmode, "true")) {
528528
getConn();
529-
LOGGER.info("[MySQL]: Reading certificates from database");
529+
LOGGER.debug("[MySQL]: Reading certificates from database");
530530
if (StringUtils.isEmpty(sqltable)) {
531531
LOGGER.error("[MySQL]: sqltable is empty. Please check your config file");
532532
} else if (sqltable != null) try {

src/main/java/org/linktechtips/model/Client.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,6 @@ public void setRating(int rating) {
185185
public long getPbh() {
186186
return pbh;
187187
}
188-
public long getHeading() {
189-
return ((pbh & 4092) >> 2 ) / 1024 * 360;
190-
}
191188
public void setPbh(long pbh) {
192189
this.pbh = pbh;
193190
}

0 commit comments

Comments
 (0)