projects
/
sdk
/
tools
/
sdk-build.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e88bf5
)
[Title] update uniq name's length for 16 size
author
hataejun
<taejun.ha@samsung.com>
Thu, 23 Aug 2012 13:51:09 +0000
(22:51 +0900)
committer
hataejun
<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
patch
|
blob
|
history
diff --git
a/src/common/utils.rb
b/src/common/utils.rb
index 5fa14b25be3f95c2f4b11fb8acedc32d8acaeeb7..a71f2928af35d8404941c4aa3631a8c5efc74aa3 100644
(file)
--- a/
src/common/utils.rb
+++ b/
src/common/utils.rb
@@
-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)