Skip to content

Commit

Permalink
remove date from JSON in 1.15.2
Browse files Browse the repository at this point in the history
  • Loading branch information
TraceLD committed Jul 28, 2020
1 parent 3097cdf commit 1a54a70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ public HttpPoster(double tps) {

@Override
public void run() {
Gson gson = new Gson();
TpsStat tpsStat = new TpsStat(CONFIG.getServerId(), System.currentTimeMillis(), tps);
String json = gson.toJson(tpsStat);
String json = "{"
+ "\n \"serverId\": " + CONFIG.getServerId() + ","
+ "\n \"tps\": " + tps + "\n"
+ "}";
URL url = null;
try {
url = new URL("http://localhost:5000/api/tps-stats");
Expand Down
41 changes: 0 additions & 41 deletions 1.15.2/src/main/java/club/moddedminecraft/tpsmod/TpsStat.java

This file was deleted.

0 comments on commit 1a54a70

Please sign in to comment.