mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-11-15 07:03:52 +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:
1 parent
bf8a1ec0d2
commit
e6e991bc64
1 file changed
+6
@@ -99,6 +99,12 @@ public:
|
||||
static double getCorrectTime(timeUnit& unit, double value){
|
||||
int intUnit = (int)SECONDS;
|
||||
|
||||
/**0 ms*/
|
||||
if(!value){
|
||||
unit = MILLISECONDS;
|
||||
return value;
|
||||
}
|
||||
|
||||
/** hr, min, sec */
|
||||
if(value>=1){
|
||||
double newVal = value;
|
||||
|
||||
Reference in new issue
Block a user