Skip to content

Commit

Permalink
Fix uptime (#529)
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperl committed Jun 4, 2024
1 parent 5ca1078 commit 6151a0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/jag/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

var (
version = "v1.37.1"
version = "v1.37.2"
sdkVersion = "v2.0.0-alpha.152"
)

Expand Down
2 changes: 1 addition & 1 deletion src/network.toit
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class EndpointHttp implements Endpoint:
if path.starts-with "/": path = path[1..]

if path == "index.html":
uptime ::= Duration --s=Time.monotonic-us / Duration.MICROSECONDS-PER-SECOND
uptime ::= Duration --s=(Time.monotonic-us --since-wakeup) / Duration.MICROSECONDS-PER-SECOND

writer.headers.set "Content-Type" "text/html"
writer.out.write """
Expand Down

0 comments on commit 6151a0a

Please sign in to comment.