diff options
author | fiaxh <git@mx.ax.lt> | 2017-09-26 17:01:06 +0200 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2017-09-26 17:01:06 +0200 |
commit | 9d8e1e88ec61403659a8cc410d5c4414e3bd3a96 (patch) | |
tree | 40f1014b7511fd5951035cb706f06d4daa2a42f0 /plugins/http-files/src/manager.vala | |
parent | 54a25fd926070a977138cec94908c55806e22f4a (diff) | |
download | dino-9d8e1e88ec61403659a8cc410d5c4414e3bd3a96.tar.gz dino-9d8e1e88ec61403659a8cc410d5c4414e3bd3a96.zip |
http-files: max-file-size handling
Diffstat (limited to 'plugins/http-files/src/manager.vala')
-rw-r--r-- | plugins/http-files/src/manager.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/http-files/src/manager.vala b/plugins/http-files/src/manager.vala index 14c190af..b1b7296c 100644 --- a/plugins/http-files/src/manager.vala +++ b/plugins/http-files/src/manager.vala @@ -13,7 +13,7 @@ public class Manager : StreamInteractionModule, Object { public signal void uploaded(FileTransfer file_transfer, string url); private StreamInteractor stream_interactor; - private HashMap<Account, int?> max_file_sizes = new HashMap<Account, int?>(Account.hash_func, Account.equals_func); + private HashMap<Account, long> max_file_sizes = new HashMap<Account, long>(Account.hash_func, Account.equals_func); private Manager(StreamInteractor stream_interactor) { this.stream_interactor = stream_interactor; @@ -60,7 +60,7 @@ public class Manager : StreamInteractionModule, Object { } } - public int? get_max_file_size(Account account) { + public long get_max_file_size(Account account) { lock (max_file_sizes) { return max_file_sizes[account]; } |