You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by an...@apache.org on 2014/03/27 18:59:08 UTC

git commit: updated refs/heads/master to 73a2aa1

Repository: cloudstack
Updated Branches:
  refs/heads/master 3be5002eb -> 73a2aa1aa


Fixed a typo


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/73a2aa1a
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/73a2aa1a
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/73a2aa1a

Branch: refs/heads/master
Commit: 73a2aa1aa4eb79d2ace9200ad53684e6cb83ca66
Parents: 3be5002
Author: Anthony Xu <an...@citrix.com>
Authored: Thu Mar 27 10:45:45 2014 -0700
Committer: Anthony Xu <an...@citrix.com>
Committed: Thu Mar 27 10:58:23 2014 -0700

----------------------------------------------------------------------
 .../com/cloud/hypervisor/xen/resource/CitrixResourceBase.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/73a2aa1a/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java b/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
index 7f5eb1a..e8cc400 100644
--- a/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
+++ b/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
@@ -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]));