Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 1c7f68a0 authored by Rob Swindell's avatar Rob Swindell 💬

Set the file cost value to the file size.

parent 1e441eda
Pipeline #2352 failed with stage
in 9 minutes and 54 seconds
......@@ -48,6 +48,7 @@ while(!file.from && !js.terminated) {
file.from = prompt("Uploader");
}
file.cost = file_size(dir.path + file.name);
print("Adding " + file.name + " to " + filebase.file);
if(filebase.add(file))
print(format("File (%s) added successfully to: ", file.name) + code);
......
Markdown is supported
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