diff --git a/server/src/admin/stats.rs b/server/src/admin/stats.rs index 18e8fce..3a19d2c 100644 --- a/server/src/admin/stats.rs +++ b/server/src/admin/stats.rs @@ -87,7 +87,7 @@ pub async fn stats_csv_api( let queried = std::time::Instant::now(); let mut data = String::with_capacity(8 * healthy_data.len()); - data.push_str("Date,Tokens AVG,Limited Tokens AVG,Requests AVG\n"); + data.push_str("Date,Sessions AVG,Limited Sessions AVG,Requests AVG\n"); for entry in healthy_data { let time = Utc @@ -129,7 +129,7 @@ pub async fn overview_csv_api( let queried = std::time::Instant::now(); let mut data = String::with_capacity(8 * healthy_data.len()); - data.push_str("Date,Tokens AVG,Limited Tokens AVG,Requests AVG\n"); + data.push_str("Date,Sessions AVG,Limited Sessions AVG,Requests AVG\n"); for entry in healthy_data { let time = Utc diff --git a/server/static/history.2.js b/server/static/history.2.js index 8c9eb1b..2769573 100644 --- a/server/static/history.2.js +++ b/server/static/history.2.js @@ -75,10 +75,10 @@ async function loadStatsGraph() { fillAlpha: 0.4, colors: ['#008000', '#ffa500', '#6495ED'], series: { - 'Tokens AVG': { + 'Sessions AVG': { axis: 'y' }, - 'Limited Tokens AVG': { + 'Limited Sessions AVG': { axis: 'y' }, 'Requests AVG': { @@ -97,7 +97,7 @@ async function loadStatsGraph() { logscale: "y log scale", }, }, - ylabel: 'Tokens', + ylabel: 'Sessions', y2label: 'Requests', } ); @@ -127,4 +127,4 @@ async function loadStatsGraph() { console.error('Failed to fetch data:', error); graphDiv.textContent = "Failed to load data."; } -} \ No newline at end of file +} diff --git a/server/static/stats.js b/server/static/stats.js index ab6c313..7d1ee6f 100644 --- a/server/static/stats.js +++ b/server/static/stats.js @@ -79,10 +79,10 @@ async function loadStatsGraph(host_id) { fillAlpha: 0.4, colors: ['#008000', '#ffa500', '#6495ED'], series: { - 'Tokens AVG': { + 'Sessions AVG': { axis: 'y' }, - 'Limited Tokens AVG': { + 'Limited Sessions AVG': { axis: 'y' }, 'Requests AVG': { @@ -101,7 +101,7 @@ async function loadStatsGraph(host_id) { logscale: "y log scale", }, }, - ylabel: 'Tokens', + ylabel: 'Sessions', y2label: 'Requests', } ); @@ -131,4 +131,4 @@ async function loadStatsGraph(host_id) { console.error('Failed to fetch data:', error); graphDiv.textContent = "Failed to load data."; } -} \ No newline at end of file +}