Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
apachedex
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
apachedex
Commits
6eb8d6ec
Commit
6eb8d6ec
authored
Apr 23, 2013
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
halfhour table period is too close to halfday (4 columns until rescale).
Replace with quarterhour, do not change plot period.
parent
df13912c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
apachedex/__init__.py
apachedex/__init__.py
+4
-4
No files found.
apachedex/__init__.py
View file @
6eb8d6ec
...
...
@@ -964,9 +964,9 @@ def _asMinuteString(timestamp):
day
,
month
,
year
=
dt_date
.
split
(
'/'
)
return
'%s/%02i/%s %s:%s'
%
(
year
,
MONTH_VALUE_DICT
[
month
],
day
,
hour
,
minute
)
def
_as
Half
HourString
(
timestamp
):
def
_as
Quarter
HourString
(
timestamp
):
prefix
,
minute
=
timestamp
.
rsplit
(
':'
,
1
)
return
'%s:%02i'
%
(
prefix
,
int
(
minute
)
//
30
*
30
)
return
'%s:%02i'
%
(
prefix
,
int
(
minute
)
//
15
*
15
)
# Key: argument (represents table granularity)
# Value:
...
...
@@ -1055,10 +1055,10 @@ period_parser = {
lambda
x
:
x
.
replace
(
minute
=
x
.
minute
//
30
*
30
),
lambda
x
:
1
,
),
'
half
hour'
:
(
'
quarter
hour'
:
(
# graph/table ratio: 30
_asMinuteString
,
_as
Half
HourString
,
_as
Quarter
HourString
,
'minute'
,
'%Y/%m/%d %H:%M'
,
timedelta
(
seconds
=
60
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment