git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-aggregator-se-plugin@148551 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
43290030ed
commit
1ffe476977
|
@ -260,14 +260,14 @@ public class AccountingAggregatorPlugin extends Plugin<AccountingAggregatorPlugi
|
|||
}
|
||||
|
||||
if (recoveryMode!=2){
|
||||
/*
|
||||
|
||||
for (String bucket:listBucket){
|
||||
logger.trace("OpenBucket:{}",bucket);
|
||||
accountingBucket = cluster.openBucket(bucket,password);
|
||||
//elaborate bucket, with scope, type aggregation and interval
|
||||
elaborateBucket(bucket,scope, inputStartTime, interval, aggType);
|
||||
}
|
||||
*/
|
||||
|
||||
if (inputs.containsKey("pathFile")){
|
||||
//update a file for new start time
|
||||
FileOutputStream file = new FileOutputStream(pathFile);
|
||||
|
@ -279,8 +279,8 @@ public class AccountingAggregatorPlugin extends Plugin<AccountingAggregatorPlugi
|
|||
Date dateNow = new Date();
|
||||
Calendar data = Calendar.getInstance();
|
||||
data.setTime(dateNow);
|
||||
data.add(Calendar.DATE,-(inputStartTime-intervaTot));
|
||||
|
||||
data.add(Calendar.DATE,-(inputStartTime-intervaTot));
|
||||
SimpleDateFormat format1 = new SimpleDateFormat("yyyy/MM/dd");
|
||||
|
||||
String formatted = format1.format(data.getTime());
|
||||
|
|
Loading…
Reference in New Issue