git://git.onelab.eu
/
plewww.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix comment
[plewww.git]
/
planetlab
/
slices
/
slice.php
diff --git
a/planetlab/slices/slice.php
b/planetlab/slices/slice.php
index
1a61181
..
f4de029
100644
(file)
--- a/
planetlab/slices/slice.php
+++ b/
planetlab/slices/slice.php
@@
-613,10
+613,9
@@
EOF;
$resa_offset=$_GET['resa_offset'];
if ( ! $resa_offset ) $resa_offset=0;
$rough_start=time()+$resa_offset*3600;
$resa_offset=$_GET['resa_offset'];
if ( ! $resa_offset ) $resa_offset=0;
$rough_start=time()+$resa_offset*3600;
- //
xxx should be configurable
+ //
show the next 36 grains
$resa_slots=$_GET['resa_slots'];
if ( ! $resa_slots ) $resa_slots = 36;
$resa_slots=$_GET['resa_slots'];
if ( ! $resa_slots ) $resa_slots = 36;
- // for now, show the next 72 hours, or 72 grains, which ever is smaller
$duration=$resa_slots*$grain;
$steps=$duration/$grain;
$start=intval($rough_start/$grain)*$grain;
$duration=$resa_slots*$grain;
$steps=$duration/$grain;
$start=intval($rough_start/$grain)*$grain;