Skip to content

Commit 17f5fdd

Browse files
committed
small fixes on formatting
1 parent d777b90 commit 17f5fdd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.DS_Store

6 KB
Binary file not shown.

daily_report.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function processLine (line) {
2626
if (date[0] === this_month + '-' + this_day) {
2727
let key = date[0] + ' - ' + line[5]
2828
if ((line[5] == 'Amazon Elastic Compute Cloud') && (line[10] == 'RunInstances')) {
29-
key = date[0] + ' - Amazon EC2 Instance (' + line[24] + ')'
29+
key = date[0] + ' - Amazon EC2 Instance (' + line[24] + ')'
3030
}
3131
acum[key] = parseFloat(acum[key] || 0) + parseFloat(line[18])
3232
acum_day = parseFloat(acum_day) + parseFloat(line[18])
@@ -48,7 +48,7 @@ function slackNotify (callback) {
4848
let options = {
4949
url: '**REMOVED**',
5050
method: 'POST',
51-
form: 'payload={"channel": "#aws_reports", "username": "AWS", "text": "AWS cost report for ' + this_month + '/' + this_day + ' \n```' + report + '\n``` \n Total Spent: `' + acum_day.toFixed(2) + '`", "icon_emoji": ":aws:"}'
51+
form: 'payload={"channel": "#aws_reports", "username": "AWS", "text": "AWS cost report for ' + this_month + '-' + this_day + ' \n```' + report + '\n``` \n Total Spent: `' + acum_day.toFixed(2) + '`", "icon_emoji": ":aws:"}'
5252
}
5353

5454
// Start the request

0 commit comments

Comments
 (0)