Add interval settings

This commit is contained in:
Fornax committed 2019-07-07 22:43:49 +02:00
1 parent e45cb6e45b
commit 0379027160
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -249,7 +249,7 @@ var DetailsWindow = {
updateGraph: function(fileID) {
var that = this;
console.log("updating graph "+fileID);
$.get(apiEndpoint+"/file/" + fileID + "/timeseries", function(response){
$.get(apiEndpoint+"/file/" + fileID + "/timeseries?interval=60", function(response){
console.log(response);
if (response.success) {
that.graph.data.labels = response.labels;
+1 -1
View File
@@ -20,7 +20,7 @@
<script src="/res/script/jquery.js"></script>
<script src="/res/misc/chartjs/Chart.min.js"></script>
<script>
$.get(apiEndpoint+"/admin/files/timeseries/14", function(response){
$.get(apiEndpoint+"/admin/files/timeseries/14?interval=60", function(response){
console.log(response);
if (response.success) {
var ctx = document.getElementById('bandwidth_chart');