Skip to content
Snippets Groups Projects
Commit c3b82708 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Fix RIP_FILE_QUERY

parent 8fd40b34
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #3485 passed
...@@ -12508,8 +12508,8 @@ do_rip_command(int level, int sublevel, int cmd, const char *rawargs) ...@@ -12508,8 +12508,8 @@ do_rip_command(int level, int sublevel, int cmd, const char *rawargs)
if (stat(cache_path, &st)) if (stat(cache_path, &st))
conn_send("0\r\n", 2, 1000); conn_send("0\r\n", 2, 1000);
else { else {
localtime_r(&st.st_atime, &tm); localtime_r(&st.st_mtime, &tm);
strftime(dstr, sizeof(dstr), "%m/%d/&y.%H:%M:%S", &tm); strftime(dstr, sizeof(dstr), "%m/%d/%y.%H:%M:%S", &tm);
sprintf(str, "1.%" PRIdOFF ".%s\r\n", st.st_size, dstr); sprintf(str, "1.%" PRIdOFF ".%s\r\n", st.st_size, dstr);
conn_send(str, strlen(str), 1000); conn_send(str, strlen(str), 1000);
} }
...@@ -12518,8 +12518,8 @@ do_rip_command(int level, int sublevel, int cmd, const char *rawargs) ...@@ -12518,8 +12518,8 @@ do_rip_command(int level, int sublevel, int cmd, const char *rawargs)
if (stat(cache_path, &st)) if (stat(cache_path, &st))
conn_send("0\r\n", 2, 1000); conn_send("0\r\n", 2, 1000);
else { else {
localtime_r(&st.st_atime, &tm); localtime_r(&st.st_mtime, &tm);
strftime(dstr, sizeof(dstr), "%m/%d/&y.%H:%M:%S", &tm); strftime(dstr, sizeof(dstr), "%m/%d/%y.%H:%M:%S", &tm);
sprintf(str, "1.%s.%" PRIdOFF ".%s\r\n", &args[6], st.st_size, dstr); sprintf(str, "1.%s.%" PRIdOFF ".%s\r\n", &args[6], st.st_size, dstr);
conn_send(str, strlen(str), 1000); conn_send(str, strlen(str), 1000);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment