Increased context timeout for orborus

This commit is contained in:
Frikky
2023-12-08 00:46:54 +01:00
parent ccc2ede226
commit 92fdd115e1
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -333,7 +333,7 @@ const LoginDialog = (props) => {
<b>1.</b> Make sure shuffle-database folder has correct access, and that you have a minimum of <b>2Gb of RAM available</b>:{" "}
<br />
<br />
sudo chown 1000:1000 -R shuffle-database
sudo chown -R 1000:1000 shuffle-database
</Typography>
<Typography
variant="body2"
+2 -2
View File
@@ -1055,7 +1055,7 @@ func getOrborusStats(ctx context.Context) shuffle.OrborusStats {
// Use the docker API to get the CPU usage of the docker engine machine
pers, err := dockercli.Info(ctx)
if err != nil {
log.Printf("[ERROR] Failed getting docker info: %s", err)
log.Printf("[ERROR] Failed getting docker info: %s. This is normal IF there are many containers running.", err)
return newStats
} else {
newStats.TotalContainers = pers.Containers
@@ -1407,7 +1407,7 @@ func main() {
// Should find data to send (memory etc.)
// Create timeout of max 4 seconds just in case
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
defer cancel()
// Marshal and set body