diff options
author | Xiao Pan <xyz@flylightning.xyz> | 2025-04-30 20:01:29 -0700 |
---|---|---|
committer | Xiao Pan <xyz@flylightning.xyz> | 2025-04-30 20:01:29 -0700 |
commit | 60bacfb2b464134596bfa92f68332c2a361c5ff6 (patch) | |
tree | c668d7a5ae961de3810982966287a33cd892fc3f /remote_plot.c | |
parent | c7828b38c2dffc7bb31afba5b0f263addd6c0cf3 (diff) |
Revert "use more optimized g_timeout_add_seconds"
This reverts commit de00233983f5df5158cbf7dfc14d493e985dda43.
g_timeout_add_seconds somehow does not call function every given interval
Diffstat (limited to 'remote_plot.c')
-rw-r--r-- | remote_plot.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/remote_plot.c b/remote_plot.c index 89000ce..e636635 100644 --- a/remote_plot.c +++ b/remote_plot.c @@ -700,8 +700,7 @@ static void activate (GtkApplication *app, gpointer user_data) read_data(user_data); //printf("before g_timeout_add\n"); - // https://docs.gtk.org/glib/func.timeout_add.html wrote g_timeout_add_seconds() is more optimized than g_timeout_add() - g_timeout_add_seconds(1000,read_data,user_data); + g_timeout_add(1000,read_data,user_data); //printf("after g_timeout_add\n"); } |