feat: use actual url
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2024-11-22 12:57:08 +01:00
parent 463e49ecf3
commit aee6ba54c6
Signed by: kjuulh
GPG Key ID: D85D7535F18F35FA
2 changed files with 22 additions and 21 deletions

View File

@ -63,7 +63,7 @@
let intervalNow = Math.floor(Date.now() / 1000) - 1;
setInterval(() => {
const unixTimestampNow = Math.floor(Date.now() / 1000);
let resp = fetch("http://localhost:3000/metrics?start=" + intervalNow + "&end=" + unixTimestampNow)
let resp = fetch("https://iamvisual.prod.kjuulh.app/metrics?start=" + intervalNow + "&end=" + unixTimestampNow)
.then((resp) => {
if (resp.ok) {
return resp.json()

View File

@ -134,7 +134,8 @@ async fn main() -> anyhow::Result<()> {
.add_fn(move |cancel| {
let state = state.clone();
async move {
let nodrift_cancel = nodrift::schedule(std::time::Duration::from_millis(1), {
let nodrift_cancel =
nodrift::schedule(std::time::Duration::from_millis(100), {
let state = state.clone();
move || {
let state = state.clone();