git://scientific.zcu.cz
/
hadoop-jobstat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f12d73a
)
Proper startig time in each interval.
author
František Dvořák
<valtri@civ.zcu.cz>
Sat, 7 Mar 2015 23:00:37 +0000
(
00:00
+0100)
committer
František Dvořák
<valtri@civ.zcu.cz>
Sat, 7 Mar 2015 23:00:37 +0000
(
00:00
+0100)
chroust.py
patch
|
blob
|
blame
|
history
diff --git
a/chroust.py
b/chroust.py
index
bf3ef1a
..
6f5d5ae
100755
(executable)
--- a/
chroust.py
+++ b/
chroust.py
@@
-118,9
+118,9
@@
for nodeid in sorted(nodes.keys()):
print "\t".join(usages)
i = min
-while i <
=
max:
- start = i
- interval * 500
- end = i +
interval * 500
+while i < max:
+ start = i
+ end = i +
1000 * interval
st.execute('SELECT * FROM subjobs WHERE finish >= %s AND start <= %s', (start, end))
#print '%s: %d subjobs' % (strp(i), st.rowcount)
subjobs = st.rowcount