Skip to content

Commit

Permalink
Revert "WIP: docs, openmetrics"
Browse files Browse the repository at this point in the history
This reverts commit 2cdde88.
Unintended WIP commit.
  • Loading branch information
natoscott committed Jul 4, 2024
1 parent 33a4cd0 commit f9a75c4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ $ dpkg -i *.deb
**rpm install** (RedHat, SuSE and their derivative distributions)
```
$ cd pcp-<version>/build/rpm
$ sudo rpm -U `ls -1 *.rpm | sed -e '/\.src\.rpm$/d'`
$ sudo rpm -U `echo *.rpm | sed -e '/\.src\.rpm$/d'`
```
**tarball install** (where we don't have native packaging working yet)
```
Expand Down
2 changes: 1 addition & 1 deletion src/pcp2openmetrics/pcp2openmetrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@ def connect(self):

if pmapi.c_api.pmSetContextOptions(self.context.ctx, self.opts.mode, self.opts.delta):
raise pmapi.pmUsageErr()
self.context.pmNewZone("UTC")

def validate_config(self):
""" Validate configuration options """
Expand Down Expand Up @@ -391,6 +390,7 @@ def write_openmetrics(self, timestamp):
# Silent goodbye, close in finalize()
return

self.context.pmNewZone("UTC")
ts = self.context.datetime_to_secs(self.pmfg_ts(), PM_TIME_SEC)

if self.prev_ts is None:
Expand Down
2 changes: 1 addition & 1 deletion src/pmproxy/src/webapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ on_pmwebapi_done(sds context, int status, sds message, void *arg)
msg = sdscatfmt(msg, "\"context\":%S,", context);
msg = sdscat(msg, "\"success\":true}\r\n");
} else {
msg = sdsnewlen("# EOF", 5);
msg = sdsempty();
}
}
baton->suffix = NULL;
Expand Down

0 comments on commit f9a75c4

Please sign in to comment.