Correct math on bar time
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user