Skip to content
This repository has been archived by the owner on May 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #35 from essentialkaos/develop
Browse files Browse the repository at this point in the history
Version 10.0.1
  • Loading branch information
andyone authored Sep 11, 2020
2 parents 79ff9d2 + f170f2e commit ff033cb
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 3 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "CodeQL"

on:
push:
branches: [master, develop]
pull_request:
branches: [master]
schedule:
- cron: '0 16 * * 1,3,5'

jobs:
analyse:
name: Analyse
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 2

- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: go

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
language: go

go:
- 1.13.x
- 1.14.x
- 1.15.x
- tip

branches:
Expand Down
4 changes: 2 additions & 2 deletions librato.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
// ////////////////////////////////////////////////////////////////////////////////// //

// VERSION contains current version of librato package and used as part of User-Agent
const VERSION = "10.0.0"
const VERSION = "10.0.1"

// ////////////////////////////////////////////////////////////////////////////////// //

Expand Down Expand Up @@ -520,7 +520,7 @@ func sendingLoop() {
now := time.Now().Unix()

for _, source := range sources {
period := timeutil.DurationToSeconds(source.getPeriod())
period := int64(timeutil.DurationToSeconds(source.getPeriod()))
lastSendTime := source.getLastSendingDate()

if period == 0 || lastSendTime <= 0 {
Expand Down

0 comments on commit ff033cb

Please sign in to comment.