From aca442e482fa8412c06b33a7e4d24b7b0a5c92db Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Mon, 6 Jun 2011 13:15:51 +0200 Subject: [PATCH] change defaults for the leases area --- planetlab/slices/leases-data.php | 1 - planetlab/slices/slice.php | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/planetlab/slices/leases-data.php b/planetlab/slices/leases-data.php index 148fca3..a39a639 100644 --- a/planetlab/slices/leases-data.php +++ b/planetlab/slices/leases-data.php @@ -23,7 +23,6 @@ $reservable_nodes=$api->GetNodes(array('|slice_ids'=>intval($slice_id), 'node_ty // where to start from, expressed as an offset in hours from now $rough_start=time()+$leases_offset*3600; -// show the next 36 grains $duration=$leases_slots*$leases_granularity; $steps=$duration/$leases_granularity; $start=intval($rough_start/$leases_granularity)*$leases_granularity; diff --git a/planetlab/slices/slice.php b/planetlab/slices/slice.php index 2d38272..d29520e 100644 --- a/planetlab/slices/slice.php +++ b/planetlab/slices/slice.php @@ -590,10 +590,10 @@ if ($count && $privileges) { if ( ! $leases_offset ) $leases_offset=0; // how many timeslots to show $leases_slots=$_GET['leases_slots']; - if ( ! $leases_slots ) $leases_slots = 48; + if ( ! $leases_slots ) $leases_slots = 36; // offset in hours (in the future) from now $leases_w = $_GET['leases_w']; - if ( ! $leases_w) $leases_w=14; + if ( ! $leases_w) $leases_w=18; // number of timeslots to display $granularity=$api->GetLeaseGranularity(); -- 2.43.0