summaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2017-01-18 09:16:23 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2017-01-18 09:16:23 -0800
commit0fb3d1d58239837ae058c43d7269ce7fc33f5a7c (patch)
tree07bb01c27b9cd177e046b2c2c45b471355dfab34 /node
parent81910c1d92d733fccbec1a8f7dac3287e9f90dd8 (diff)
downloadinfinitytier-0fb3d1d58239837ae058c43d7269ce7fc33f5a7c.tar.gz
infinitytier-0fb3d1d58239837ae058c43d7269ce7fc33f5a7c.zip
Add a build version for software update use so we can do very minor updates within a version.
Diffstat (limited to 'node')
-rw-r--r--node/Utils.hpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/node/Utils.hpp b/node/Utils.hpp
index 48c43da3..48cf799e 100644
--- a/node/Utils.hpp
+++ b/node/Utils.hpp
@@ -335,8 +335,7 @@ public:
*
* @return -1, 0, or 1 based on whether first tuple is less than, equal to, or greater than second
*/
- static inline int compareVersion(unsigned int maj1,unsigned int min1,unsigned int rev1,unsigned int maj2,unsigned int min2,unsigned int rev2)
- throw()
+ static inline int compareVersion(unsigned int maj1,unsigned int min1,unsigned int rev1,unsigned int b1,unsigned int maj2,unsigned int min2,unsigned int rev2,unsigned int b2)
{
if (maj1 > maj2)
return 1;
@@ -352,7 +351,13 @@ public:
return 1;
else if (rev1 < rev2)
return -1;
- else return 0;
+ else {
+ if (b1 > b2)
+ return 1;
+ else if (b1 < b2)
+ return -1;
+ else return 0;
+ }
}
}
}