Skip to content

Commit

Permalink
Fix running on Windows (hedyorg#822)
Browse files Browse the repository at this point in the history
* Fix running on Windows
  • Loading branch information
bjorn3 authored Sep 29, 2021
1 parent d87a76a commit 465572e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion website/querylog.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ def __init__(self, **kwargs):
self.start_rusage = resource.getrusage(resource.RUSAGE_SELF)
self.attributes = kwargs
self.running_timers = set([])
loadavg = os.getloadavg()[0] if not IS_WINDOWS else None
self.set(
start_time=dtfmt(self.start_time),
pid=os.getpid(),
loadavg=os.getloadavg()[0],
loadavg=loadavg,
fault=0)

dyno = os.getenv('DYNO')
Expand Down

0 comments on commit 465572e

Please sign in to comment.