mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-16 08:39:21 +01:00
fixed constant scan widget problem
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorGui@70 af1100a4-978c-4157-bff7-07162d2ba061
This commit is contained in:
@@ -99,6 +99,12 @@ public:
|
|||||||
static double getCorrectTime(timeUnit& unit, double value){
|
static double getCorrectTime(timeUnit& unit, double value){
|
||||||
int intUnit = (int)SECONDS;
|
int intUnit = (int)SECONDS;
|
||||||
|
|
||||||
|
/**0 ms*/
|
||||||
|
if(!value){
|
||||||
|
unit = MILLISECONDS;
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
/** hr, min, sec */
|
/** hr, min, sec */
|
||||||
if(value>=1){
|
if(value>=1){
|
||||||
double newVal = value;
|
double newVal = value;
|
||||||
|
|||||||
Reference in New Issue
Block a user