[Title] update uniq name's length for 16 size
authorhataejun <taejun.ha@samsung.com>
Thu, 23 Aug 2012 13:51:09 +0000 (22:51 +0900)
committerhataejun <taejun.ha@samsung.com>
Thu, 23 Aug 2012 13:51:09 +0000 (22:51 +0900)
[Type]
[Module]
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

src/common/utils.rb

index 5fa14b25be3f95c2f4b11fb8acedc32d8acaeeb7..a71f2928af35d8404941c4aa3631a8c5efc74aa3 100644 (file)
@@ -75,8 +75,9 @@ class Utils
 
     def Utils.create_uniq_name      
         time = Time.new     
+
         # uniq snapshot_name name is year_month_day_hour_min_sec_microsec       
-        return time.strftime("%m%d%H%M%S") + time.usec.to_s()        
+               return time.strftime("%m%d%H%M%S") + time.usec.to_s.rjust(6, '0')
     end
 
     def Utils.is_url_remote(url)