Add interval settings
This commit is contained in:
@@ -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;
|
||||
|
@@ -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');
|
||||
|
Reference in New Issue
Block a user