Fixed a typo

This commit is contained in:
Anthony Xu 2014-03-27 10:45:45 -07:00
parent 0ad1a517a2
commit 91a3365184
1 changed files with 2 additions and 2 deletions

View File

@ -4122,13 +4122,13 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe
}
protected String generateTimeStamp() {
return new StringBuilder("CsCreateTime-").append(System.currentTimeMillis()).append("-").append(Rand.nextInt()).toString();
return new StringBuilder("CsCreateTime-").append(System.currentTimeMillis()).append("-").append(Rand.nextInt(Integer.MAX_VALUE)).toString();
}
protected Pair<Long, Integer> parseTimestamp(String timeStampStr) {
String[] tokens = timeStampStr.split("-");
assert (tokens.length == 3) : "It's our timestamp but it doesn't fit our format: " + timeStampStr;
if (!tokens[0].equals("CsCreateTime-")) {
if (!tokens[0].equals("CsCreateTime")) {
return null;
}
return new Pair<Long, Integer>(Long.parseLong(tokens[1]), Integer.parseInt(tokens[2]));