From 9e1b5d45f00b4240fcd1686d1a808e5ec733763b Mon Sep 17 00:00:00 2001 From: PS Date: Wed, 31 Mar 2021 02:04:03 -0700 Subject: [PATCH] Added some info to the blumen status log --- src/app/ss_blumen_lumen/blumen_lumen.cpp | 7 ++++++- src/app/ss_blumen_lumen/blumen_lumen_settings.h | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/app/ss_blumen_lumen/blumen_lumen.cpp b/src/app/ss_blumen_lumen/blumen_lumen.cpp index d287917..cf9e01b 100644 --- a/src/app/ss_blumen_lumen/blumen_lumen.cpp +++ b/src/app/ss_blumen_lumen/blumen_lumen.cpp @@ -281,7 +281,12 @@ BlumenLumen_UpdateLog(app_state* State, blumen_lumen_state* BLState, context Con if (!BLState->ShouldUpdateLog) return; gs_string FileStr = PushString(State->Transient, 1024); - AppendPrintF(&FileStr, "Lumenarium Status\n\n"); + AppendPrintF(&FileStr, "Lumenarium Status\n"); + + system_time Time = Context.SystemTime_Current; + AppendPrintF(&FileStr, "Last Updated At: %d-%d-%d : %d:%d:%d\n\n", + Time.Year, Time.Month, Time.Day, + Time.Hour, Time.Minute, Time.Second); animation* CurrAnim = AnimationSystem_GetActiveAnimation(&State->AnimationSystem); AppendPrintF(&FileStr, "Curr Animation: %S\n", CurrAnim->Name); diff --git a/src/app/ss_blumen_lumen/blumen_lumen_settings.h b/src/app/ss_blumen_lumen/blumen_lumen_settings.h index 809106e..ab38ed8 100644 --- a/src/app/ss_blumen_lumen/blumen_lumen_settings.h +++ b/src/app/ss_blumen_lumen/blumen_lumen_settings.h @@ -143,6 +143,6 @@ r32 GlobalAnimSpeed = 1.0f; // How often should Lumenarium send its status to the python server? // -#define STATUS_PACKET_FREQ_SECONDS 2 // in seconds +#define STATUS_PACKET_FREQ_SECONDS 10 // in seconds #endif //BLUMEN_LUMEN_SETTINGS_H