Adds JavaDoc to PageLoader

Removes unused variable in buildSeriesDataString
This commit is contained in:
Fuzzlemann 2017-07-30 00:41:43 +02:00
parent 0375de9cd5
commit 84217a7839
2 changed files with 6 additions and 3 deletions

View File

@ -3,7 +3,9 @@ package main.java.com.djrapitops.plan.data.cache;
import main.java.com.djrapitops.plan.ui.webserver.response.Response;
/**
* Created by Fuzzlemann on 29.07.2017.
* This interface is used for providing the method to load the page.
*
* @author Fuzzlemann
*/
public interface PageLoader {

View File

@ -22,13 +22,14 @@ public class TPSGraphCreator {
}
public static String buildSeriesDataString(List<TPS> tpsData) {
long now = MiscUtils.getTime();
List<Point> points = tpsData.stream()
.map(tps -> new Point(tps.getDate(), tps.getTps()))
.collect(Collectors.toList());
return ScatterGraphCreator.scatterGraph(points, true);
}public static String buildScatterDataStringTPS(List<TPS> tpsData, long scale) {
}
public static String buildScatterDataStringTPS(List<TPS> tpsData, long scale) {
long now = MiscUtils.getTime();
List<Point> points = tpsData.stream()
.filter(tps -> tps.getDate() >= now - scale)