summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/services.inc.php
diff options
context:
space:
mode:
authoralex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-08-26 13:48:19 +0000
committeralex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-08-26 13:48:19 +0000
commit58844dad77c093ea6a99781292806cc27a289a29 (patch)
treee232488703aa76e122b1c8189c4961eac30ff2bf /frontends/php/include/services.inc.php
parent036544702bafc79be9d5e9cb7ec8473b35f3f857 (diff)
downloadzabbix-58844dad77c093ea6a99781292806cc27a289a29.tar.gz
zabbix-58844dad77c093ea6a99781292806cc27a289a29.tar.xz
zabbix-58844dad77c093ea6a99781292806cc27a289a29.zip
- [ZBX-12] fixed calculations in ZABBIX availability report (Alexei)
[svn merge -r4676:4679 svn://svn.zabbix.com/branches/1.4] git-svn-id: svn://svn.zabbix.com/trunk@4680 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/services.inc.php')
-rw-r--r--frontends/php/include/services.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/php/include/services.inc.php b/frontends/php/include/services.inc.php
index 32367ce8..75f5c373 100644
--- a/frontends/php/include/services.inc.php
+++ b/frontends/php/include/services.inc.php
@@ -363,7 +363,7 @@
)
{
/* calculate period FROM '-1 week' to know period name for $period_start */
- for($curr = ($period_start - (7*24*36000)); $curr<=$period_end; $curr += 6*3600)
+ for($curr = ($period_start - (7*24*3600)); $curr<=$period_end; $curr += 6*3600)
{
$curr_date = getdate($curr);
$from_date = getdate($ts_from);