ignore small value for usleep to avoid SVACE issue 76/182776/1
authorWoongsuk Cho <ws77.cho@samsung.com>
Thu, 28 Jun 2018 01:53:14 +0000 (10:53 +0900)
committerWoongsuk Cho <ws77.cho@samsung.com>
Thu, 28 Jun 2018 01:53:14 +0000 (10:53 +0900)
Change-Id: I2012379154c5a775dc1717f5b2a8c54bb929a8aa

NativeLauncher/installer-plugin/ni_common.cc

index 7bdaa2f..97725a3 100644 (file)
@@ -61,7 +61,8 @@ static int __interval = 0;
 
 static void waitInterval()
 {
-       if (__interval > 0) {
+       // by the recommand, ignore small value for performance.
+       if (__interval > 10000) {
                fprintf(stderr, "sleep %d usec\n", __interval);
                usleep(__interval);
        }