Files
duplicati/Duplicati/GUI/Datamodel/Schedule.Extension.cs
T
kenneth.skovhede@gmail.com c9ce3a3216 Added options to throttle up and download.
GPG encryption now works correctly.
Asyncronous uploads now work as expected.

git-svn-id: https://duplicati.googlecode.com/svn/trunk@73 59da171f-624f-0410-aa54-27559c288bec
2009-01-25 19:33:36 +00:00

27 lines
853 B
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace Duplicati.Datamodel
{
public partial class Schedule
{
public bool ExistsInDb
{
get { return this.ID > 0; }
}
public void GetOptions(Dictionary<string, string> options)
{
if (!string.IsNullOrEmpty(this.MaxUploadsize))
options["totalsize"] = this.MaxUploadsize;
if (!string.IsNullOrEmpty(this.VolumeSize))
options["volsize"] = this.VolumeSize;
if (!string.IsNullOrEmpty(this.DownloadBandwidth))
options["max-download-pr-second"] = this.DownloadBandwidth;
if (!string.IsNullOrEmpty(this.UploadBandwidth))
options["max-upload-pr-second"] = this.UploadBandwidth;
}
}
}