Commit c3b82708 authored by Deucе's avatar Deucе 👌🏾
Browse files

Fix RIP_FILE_QUERY

parent 8fd40b34
Pipeline #3485 passed with stage
in 5 minutes and 35 seconds
......@@ -12508,8 +12508,8 @@ do_rip_command(int level, int sublevel, int cmd, const char *rawargs)
if (stat(cache_path, &st))
conn_send("0\r\n", 2, 1000);
else {
localtime_r(&st.st_atime, &tm);
strftime(dstr, sizeof(dstr), "%m/%d/&y.%H:%M:%S", &tm);
localtime_r(&st.st_mtime, &tm);
strftime(dstr, sizeof(dstr), "%m/%d/%y.%H:%M:%S", &tm);
sprintf(str, "1.%" PRIdOFF ".%s\r\n", st.st_size, dstr);
conn_send(str, strlen(str), 1000);
}
......@@ -12518,8 +12518,8 @@ do_rip_command(int level, int sublevel, int cmd, const char *rawargs)
if (stat(cache_path, &st))
conn_send("0\r\n", 2, 1000);
else {
localtime_r(&st.st_atime, &tm);
strftime(dstr, sizeof(dstr), "%m/%d/&y.%H:%M:%S", &tm);
localtime_r(&st.st_mtime, &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);
conn_send(str, strlen(str), 1000);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment