Skip to content

Commit

Permalink
timeout increase to 48 hours
Browse files Browse the repository at this point in the history
  • Loading branch information
alessiofilippin committed Apr 11, 2023
1 parent dd4aecf commit aedebdd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Binary file modified .vs/SinnerBot/v16/.suo
Binary file not shown.
2 changes: 1 addition & 1 deletion Controllers/JsonSerializerController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ private static void CleanFile()
{
DateTime lastWrite = File.GetLastWriteTime(path);

if(lastWrite < DateTime.Now.AddHours(-2))
if(lastWrite < DateTime.Now.AddHours(-48))
{
File.Delete(path);
}
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@

## State

**Eng**: The state of each deck per server is saved into a JSON file which the bot will read and write depending on the command type. This was the cheapest solution for hosting and the JSON file will be destroyed after 2 hours of inactivity to preserve the memory on the host.
**Eng**: The state of each deck per server is saved into a JSON file which the bot will read and write depending on the command type. This was the cheapest solution for hosting and the JSON file will be destroyed after 48 hours of inactivity to preserve the memory on the host.

**Ita**: Lo stato di ogni deck per server viene salvato in un file JSON che il bot leggerà e scriverà a seconda del tipo di comando. Questa era la soluzione più economica per l'hosting e il file JSON verrà distrutto dopo 2 ore di inattività per preservare la memoria sull'host.
**Ita**: Lo stato di ogni deck per server viene salvato in un file JSON che il bot leggerà e scriverà a seconda del tipo di comando. Questa era la soluzione più economica per l'hosting e il file JSON verrà distrutto dopo 48 ore di inattività per preservare la memoria sull'host.

0 comments on commit aedebdd

Please sign in to comment.