From 26f6bf0ae62fceb1d010ed3349807f216224eb80 Mon Sep 17 00:00:00 2001 From: Yegor Bugayenko Date: Sun, 20 Nov 2016 13:37:35 +0200 Subject: [PATCH] #22 30 days --- src/main/java/io/jare/dynamo/DyUsage.java | 2 +- src/main/xsl/index.xsl | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/io/jare/dynamo/DyUsage.java b/src/main/java/io/jare/dynamo/DyUsage.java index 5fce47f..7f97611 100644 --- a/src/main/java/io/jare/dynamo/DyUsage.java +++ b/src/main/java/io/jare/dynamo/DyUsage.java @@ -91,7 +91,7 @@ public void add(final Date date, final long bytes) throws IOException { new Directives().xpath( String.format( "/usage/day[number(@id) < %d]", - DyUsage.asNumber(DateUtils.addDays(new Date(), -Tv.TEN)) + DyUsage.asNumber(DateUtils.addDays(new Date(), -Tv.THIRTY)) ) ).remove() ).applyQuietly(node); diff --git a/src/main/xsl/index.xsl b/src/main/xsl/index.xsl index 8bc19d5..7eaaf79 100644 --- a/src/main/xsl/index.xsl +++ b/src/main/xsl/index.xsl @@ -84,7 +84,7 @@ This is the list of most active of them. - The amount of Mb is calculated over the last ten days. + The amount of Mb is calculated over the last month. If you see yourself on top of the list, you most probably have to upgrade your account to premium. Please, email us @@ -92,7 +92,7 @@

- Total traffic over the last ten days: + Total traffic over the last month: Gb @@ -102,7 +102,7 @@ approximately $ - per month for current traffic. + monthly.

It's an open source system.