From b2a2b08d1306eb2558b7d8cfa327880c66c7d81c Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Tue, 17 Jul 2007 12:59:18 +0000
Subject: [PATCH] Fix issue 1958. Make sure duration and size values are always separated from their unit by a single space. For example, the value 5 seconds should be displayed as "5 s" and not "5s".
---
opends/src/server/org/opends/server/admin/DurationPropertyDefinition.java | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/admin/DurationPropertyDefinition.java b/opends/src/server/org/opends/server/admin/DurationPropertyDefinition.java
index eb269a5..1e0e749 100644
--- a/opends/src/server/org/opends/server/admin/DurationPropertyDefinition.java
+++ b/opends/src/server/org/opends/server/admin/DurationPropertyDefinition.java
@@ -499,6 +499,7 @@
// Encode the size value using the base unit.
StringBuilder builder = new StringBuilder();
builder.append(value);
+ builder.append(' ');
builder.append(baseUnit.toString());
return builder.toString();
}
--
Gitblit v1.10.0