Correct math on bar time

This commit is contained in:
2026-04-23 03:30:25 -05:00
parent d41f9c62b9
commit 64b8996710

View File

@@ -289,7 +289,7 @@ mxml_node_t* generate_index() {
mxmlElementSetAttr(cell, "_status", state_text(srvstat->state));
mxmlElementSetAttrf(cell, "_ping", "%.02f ms", srvstat->ping);
long peroid_time_s = peroid->time / 1000;
long peroid_time_s = peroid->time / 1000000;
char* time_str = (char*)malloc(20);
strftime(time_str, 20, "%a %b %d %I:%M %P", localtime(&peroid_time_s));
mxmlElementSetAttr(cell, "_time", time_str);