Skip to content

Commit

Permalink
working great now
Browse files Browse the repository at this point in the history
  • Loading branch information
luisilva committed Apr 29, 2016
1 parent bc3038c commit a978e50
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions graph_rsnap_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,9 @@ def total_secs(self):
self.metric = int((self.times.days * 86400) + self.times.seconds)

def graph_data(self):
content = []
# Open Socket and push all the metrics we have accumulated
content = self.graph_list
content = "".join(self.graph_list)
logger.debug("<<< Opening Connection >>>")
logger.debug("Pushing data: \n %s" % content)
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
Expand All @@ -207,7 +208,7 @@ def graph_data(self):
s.close()

def set_last_times(self):
logger.info(self.last_times_dict)
logger.debug(self.last_times_dict)
if bool(self.last_times_dict):
pickle.dump(self.last_times_dict, open("save.p", "wb"))

Expand All @@ -232,6 +233,6 @@ def set_last_times(self):
# graphite server name
graphite_server = 'graph.rc.fas.harvard.edu'
# graphite intake port
graphite_port = '2003'
graphite_port = 2003
# Kick off main script
rsnap_runtime()

0 comments on commit a978e50

Please sign in to comment.