Skip to content

Commit

Permalink
Moved json files to subdirectory
Browse files Browse the repository at this point in the history
Changed to write and read from subdirectory. Also put graphml files in
gml subdirectory. Changed js to read from /json
  • Loading branch information
adrianco committed Mar 26, 2015
1 parent 7d59151 commit 44d7481
Show file tree
Hide file tree
Showing 44 changed files with 1,561 additions and 923 deletions.
2 changes: 1 addition & 1 deletion collect/collect.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func Measure(h *metrics.Histogram, d time.Duration) {

func Save() {
if archaius.Conf.Collect {
file, _ := os.Create(archaius.Conf.Arch + "_metrics.json")
file, _ := os.Create("json/" + archaius.Conf.Arch + "_metrics.json")
counters, gauges := metrics.Snapshot()
cj, _ := json.Marshal(counters)
gj, _ := json.Marshal(gauges)
Expand Down
File renamed without changes.
778 changes: 778 additions & 0 deletions gml/migration9.graphml

Large diffs are not rendered by default.

File renamed without changes.
2 changes: 1 addition & 1 deletion graphjson/graphjson.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func Setup(arch string) {
if Enabled == false {
return
}
file, _ = os.Create(arch + ".json")
file, _ = os.Create("json/" + arch + ".json")
Write(fmt.Sprintf("{\n \"arch\":\"%v\",\n \"version\":\"spigo-0.3\",\n \"args\":\"%v\",\n \"graph\":[", arch, os.Args))
comma = false
}
Expand Down
2 changes: 1 addition & 1 deletion graphml/graphml.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func Setup(filename string) {
if Enabled == false {
return
}
file, _ = os.Create(filename + ".graphml")
file, _ = os.Create("gml/" + filename + ".graphml")
file.WriteString(
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n <graphml xmlns=\"http://graphml.graphdrawing.org/xmlns/graphml\"\n xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n xsi:schemaLocation=\"http://graphml.graphdrawing.org/xmlns/graphml http://www.yworks.com/xml/schema/graphml/1.0/ygraphml.xsd\"\n xmlns:y=\"http://www.yworks.com/xml/graphml\">\n <key id=\"d0\" for=\"node\" yfiles.type=\"nodegraphics\"/>\n <key id=\"d1\" for=\"edge\" yfiles.type=\"edgegraphics\"/>\n <key id=\"d2\" for=\"node\" attr.name=\"Text\" attr.type=\"string\"/>\n <graph id=\"spigo\" edgedefault=\"directed\">\n")
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
774 changes: 774 additions & 0 deletions json/migration9.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions json/migration_metrics.json

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
918 changes: 0 additions & 918 deletions migration9.json

This file was deleted.

Binary file modified spigo
Binary file not shown.
2 changes: 1 addition & 1 deletion spigo.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Package main for spigo - simulate protocol interactions in go.
// Terminology is a mix of promise theory and flying spaghetti monster lore
// Terminology is a mix of NetflixOSS, promise theory and flying spaghetti monster lore
package main

import (
Expand Down
2 changes: 1 addition & 1 deletion ui/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@

step = (query.step && query.step !== 0) ? query.step : '';
architecture = (query.arch) ? query.arch : 'migration';
var jsonFile = architecture + step + '.json';
var jsonFile = 'json/' + architecture + step + '.json';

d3.json(jsonFile, function(error, json) {
if (error) {
Expand Down

0 comments on commit 44d7481

Please sign in to comment.