slogging time bug
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
i m in australia and my computer have to times:
localtime and UTC time
in slogging and swift code, all use gmtime to get the UTC time
but my localtime is different
so when i run swift stats collector program to calculate all the swift proxy log and account/container stats, i found that:
proxy log use UTC time , and account/container stats use localtime!!
so i change the access_processor.py like that:
day, month, year, hour, minute, second = timestamp.
month = ('%02s' % month_map.
timestr = day+"/"
timestr2 = "01/01/1970/00/0/0"
timestr = time.mktime(
timestr2 = time.mktime(
timestr = time.localtime(
timestamp = time.strftime(
day, month, year, hour, minute, second = timestamp.
that can change the proxy log time to localtime , so that can make sure the calculate result is correct!
affects: | openstack-ci → swift |
slogging is no longer part of swift itself. it is now a separate project, found here https:/ /github. com/notmyname/ slogging