Skip to content

Commit

Permalink
increase pv logging granularity
Browse files Browse the repository at this point in the history
  • Loading branch information
dj-nitehawk committed Jul 15, 2022
1 parent f010da5 commit 824eac4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Server/Persistance/PVGen/PVGenExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

public static class PVGenExtensions
{
private static readonly TimeSpan d = TimeSpan.FromMinutes(5);
private static readonly TimeSpan d = TimeSpan.FromMinutes(1);

public static string ToKey(this DateTime dt)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Server/Persistance/PVGen/PVGeneration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public void SetWattPeaks(int newValue)
{
var currentHour = DateTime.Now.Hour;

if (currentHour is >= 8 and <= 16)
if (currentHour is >= 7 and <= 17)
{
var key = DateTime.Now.ToKey();

Expand Down

0 comments on commit 824eac4

Please sign in to comment.