revision in version number in getId

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@378 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
bergamaschi 2012-12-13 09:28:06 +00:00
parent 00e9c69bed
commit 806df32efb
2 changed files with 7 additions and 3 deletions

View File

@ -1576,6 +1576,8 @@ int64_t slsDetector::getId( idMode mode, int imod){
int64_t retval=-1;
int fnum=F_GET_ID;
int ret=FAIL;
int64_t rev=0;
char mess[100];
@ -1588,7 +1590,8 @@ int64_t slsDetector::getId( idMode mode, int imod){
#endif
if (mode==THIS_SOFTWARE_VERSION) {
ret=OK;
retval=thisSoftwareVersion;
sscanf(THIS_REVISION,"$Rev : %x",&rev);
retval=thisSoftwareVersion & rev << 32;
} else {
if (thisDetector->onlineFlag==ONLINE_FLAG) {
if (controlSocket) {

View File

@ -43,7 +43,7 @@ using namespace std;
#define DEFAULT_HOSTNAME "localhost"
#define DEFAULT_SHM_KEY 5678
#define THIS_REVISION "$Rev$"
/**
@short class containing all the possible detector functionalities
@ -642,7 +642,8 @@ virtual int exitReceiver()=0;
protected:
static const int64_t thisSoftwareVersion=0x$Rev$20120124;
static const int64_t thisSoftwareVersion=0x20120124;