summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2008-05-26 13:02:34 +0000
committerPaul Buetow <paul@buetow.org>2008-05-26 13:02:34 +0000
commit71d9caff2cc21a39971b69670c481c28b0399b9c (patch)
tree11538f4d513f2d9d8ec0393c99f24b6125ce8ba8
parent5b6bf8d65ecd6b4b3cccc17314dd763255fb3856 (diff)
backup
-rw-r--r--sources/core/VSProcess.java2
-rw-r--r--sources/prefs/VSDefaultPrefs.java4
-rw-r--r--sources/prefs/VSPrefs.java2
3 files changed, 4 insertions, 4 deletions
diff --git a/sources/core/VSProcess.java b/sources/core/VSProcess.java
index dcde77a..39986f0 100644
--- a/sources/core/VSProcess.java
+++ b/sources/core/VSProcess.java
@@ -181,7 +181,7 @@ public class VSProcess extends VSPrefs {
currentColor = getColor("col.process.default");
/* Make additional process settings editable through GUI */
- setLongIfUnset("process.localtime", localTime, prefs.getString("lang.process.time.local"));
+ initLongUnit("process.localtime", localTime, prefs.getString("lang.process.time.local"), "ms");
crashedColor = getColor("col.process.crashed");
createRandomCrashTask();
diff --git a/sources/prefs/VSDefaultPrefs.java b/sources/prefs/VSDefaultPrefs.java
index bd978e9..d3738a8 100644
--- a/sources/prefs/VSDefaultPrefs.java
+++ b/sources/prefs/VSDefaultPrefs.java
@@ -201,8 +201,8 @@ public class VSDefaultPrefs extends VSPrefs {
*/
public void fillDefaultLongs() {
/* Simulation prefs */
- initLongUnit("message.sendingtime.min", 500, "Minimale Übertragungszeit", "ms");
- initLongUnit("message.sendingtime.max", 2000, "Maximale Übertragungszeit", "ms");
+ initLongUnit("message.sendingtime.min", 500l, "Minimale Übertragungszeit", "ms");
+ initLongUnit("message.sendingtime.max", 2000l, "Maximale Übertragungszeit", "ms");
}
/* (non-Javadoc)
diff --git a/sources/prefs/VSPrefs.java b/sources/prefs/VSPrefs.java
index 0aa8a01..39cafcc 100644
--- a/sources/prefs/VSPrefs.java
+++ b/sources/prefs/VSPrefs.java
@@ -881,7 +881,7 @@ public abstract class VSPrefs implements Serializable {
* @param descr the descr
* @param unit the unit
*/
- public void initLongUnit(String key, int val, String descr, String unit) {
+ public void initLongUnit(String key, long val, String descr, String unit) {
initLong(key, new Long(val), descr);
setUnit(LONG_PREFIX + key, unit);
}