fixed problem of period beign recalculated for each refresh

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorGui@244 af1100a4-978c-4157-bff7-07162d2ba061
This commit is contained in:
l_maliakal_d
2013-10-10 09:09:55 +00:00
parent b9fcbf4697
commit c32acebc35
2 changed files with 38 additions and 10 deletions

View File

@ -118,7 +118,7 @@ static const int64_t GUI_VERSION=0x20121213;
while((newVal>=1)&&(intUnit>=(int)HOURS)){
/** value retains the old value */
value = newVal;
newVal = value/60;
newVal = value/(double)60;
intUnit--;
}
/** returning the previous value*/
@ -128,7 +128,7 @@ static const int64_t GUI_VERSION=0x20121213;
/** ms, us, ns */
else{
while((value<1)&&(intUnit<(int)NANOSECONDS)){
value = value*1000;
value = value*(double)1000;
intUnit++;
}
unit = (timeUnit)(intUnit);