Skip to content

Commit

Permalink
Fix charts
Browse files Browse the repository at this point in the history
  • Loading branch information
Levminer committed Jan 13, 2025
1 parent 85284da commit b55f734
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion platforms/interface/app/layout/app.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@
// Update hardware statistics
const updateHardwareStats = (input: HardwareInfo) => {
if (Object.keys(input).length !== 0) {
if ($hardwareStatistics.minutes.length >= 61) {
if ($hardwareStatistics.minutes.length >= 62) {
$hardwareStatistics.minutes.shift()
}
Expand Down
2 changes: 1 addition & 1 deletion platforms/interface/ui/charts/LineChart.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
ticks: {
callback: function (val, index) {
// @ts-ignore ticks if they're divisible by 10
return index % 10 === 0 ? this.getLabelForValue(val) : ""
return index % 30 === 0 ? this.getLabelForValue(val) : ""
},
maxRotation: 0,
minRotation: 0,
Expand Down
2 changes: 1 addition & 1 deletion platforms/interface/web/src/routes/(app)/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
// Update hardware statistics
const updateHardwareStats = (input: HardwareInfo) => {
if (Object.keys(input).length !== 0) {
if ($hardwareStatistics.minutes.length >= 61) {
if ($hardwareStatistics.minutes.length >= 62) {
$hardwareStatistics.minutes.shift()
}
Expand Down

0 comments on commit b55f734

Please sign in to comment.