Permalink
Browse files

Fix a typo in the lpreserver replication settings modification

  • Loading branch information...
1 parent 9fcc85a commit efffa1518584ac9d90e2998e5ef41416f4781b83 Ken Moore committed Aug 21, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 src-qt4/life-preserver/LPBackend.cpp
@@ -276,7 +276,8 @@ QString LPBackend::revertSnapshotFile(QString dsmountpoint, QString snapshot, QS
// ==================
bool LPBackend::setupReplication(QString dataset, QString remotehost, QString user, int port, QString remotedataset, int time){
QString stime = "sync"; //synchronize on snapshot creation (default)
- if(time >= 0 || time < 24){ stime = QString::number(time); } //daily at a particular hour (24 hour notation)
+ if(time >= 0 && time < 24){ stime = QString::number(time); } //daily at a particular hour (24 hour notation)
+
QString cmd = "lpreserver replicate add "+remotehost+" "+user+" "+ QString::number(port)+" "+dataset+" "+remotedataset+" "+stime;
int ret = system(cmd.toUtf8());

0 comments on commit efffa15

Please sign in to comment.