[rygel] Handle repitition parameter in NSLookup action correctly
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] Handle repitition parameter in NSLookup action correctly
- Date: Fri, 18 Jul 2014 19:23:14 +0000 (UTC)
commit 177ca130dd4f4e712f8e2f8e19c27c9ad83c88d6
Author: rygelgit <p balasubramanian cablelabs com>
Date: Tue Jul 8 21:55:22 2014 -0700
Handle repitition parameter in NSLookup action correctly
https://bugzilla.gnome.org/show_bug.cgi?id=732935
.../rygel-basic-management-test-nslookup.vala | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/src/librygel-core/rygel-basic-management-test-nslookup.vala
b/src/librygel-core/rygel-basic-management-test-nslookup.vala
index c74ac83..aa6edb8 100644
--- a/src/librygel-core/rygel-basic-management-test-nslookup.vala
+++ b/src/librygel-core/rygel-basic-management-test-nslookup.vala
@@ -167,16 +167,18 @@ internal class Rygel.BasicManagementTestNSLookup : BasicManagementTest {
default = DEFAULT_INTERVAL_TIMEOUT;
}
+ private uint _repetitions;
public uint repetitions {
construct {
- this.iterations = value;
- if (this.iterations == 0) {
- this.iterations = DEFAULT_REPETITIONS;
+ this.iterations = 1;
+ this._repetitions = value;
+ if (this._repetitions == 0) {
+ this._repetitions = DEFAULT_REPETITIONS;
}
}
private get {
- return this.iterations;
+ return this._repetitions;
}
default = DEFAULT_REPETITIONS;
}
@@ -217,6 +219,7 @@ internal class Rygel.BasicManagementTestNSLookup : BasicManagementTest {
this.command = { "nslookup",
"-timeout=%u".printf (this.interval_time_out/1000),
+ "-retry=%u".printf (this.repetitions),
host_name };
if (name_server != null && name_server.length > 0) {
this.command += name_server;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]