yats.git

commit 7191ff5ef195a80238d10192ad681c131a23fd45

Author: Paolo Lulli <paolo@lulli.net>

int32 to int64

 server/db/queries.go | 4 ++--
 server/rest/rest-metric.go | 6 +++---


diff --git a/server/db/queries.go b/server/db/queries.go
index 5d3a2c49fc7a327d920230cb05ed1d41862764da..9356eb09e1fad3fbde183e49b0f166564dbc7168 100644
--- a/server/db/queries.go
+++ b/server/db/queries.go
@@ -54,7 +54,7 @@ 	}
 	return metrics
 }
 
-func MetricsFrom(session *gocql.Session, idClient string, metricName string, fromTime string, limit int32) []model.MetricModel {
+func MetricsFrom(session *gocql.Session, idClient string, metricName string, fromTime string, limit int64) []model.MetricModel {
 	var metrics []model.MetricModel
 	m := map[string]interface{}{}
 
@@ -74,7 +74,7 @@ 	}
 	return metrics
 }
 
-func MetricsBetween(session *gocql.Session, idClient string, metricName string, fromTime string, toTime string, limit int32) []model.MetricModel {
+func MetricsBetween(session *gocql.Session, idClient string, metricName string, fromTime string, toTime string, limit int64) []model.MetricModel {
 	var metrics []model.MetricModel
 	m := map[string]interface{}{}
 




diff --git a/server/rest/rest-metric.go b/server/rest/rest-metric.go
index adf3a8bb509e93877f190b0fc7df03c8c338d110..d0e04554a17f92231017dd5f6746e726c4f997e7 100644
--- a/server/rest/rest-metric.go
+++ b/server/rest/rest-metric.go
@@ -26,8 +26,8 @@ )
 
 var (
 	//outfile, _ = os.Create(configuration.LogFile)
-	LOG = log.New(os.Stdout, "[YATS] ", log.Ldate|log.Ltime)
-	var MaxPageSize int32 = 100
+	LOG               = log.New(os.Stdout, "[YATS] ", log.Ldate|log.Ltime)
+	MaxPageSize int64 = 100
 )
 
 // @BasePath /
@@ -144,4 +144,4 @@
 		maxpage := metricsPack[len(metricsPack)-1].Mtime
 		JsonPrint(cfg, c, http.StatusAccepted, gin.H{"maxpage": maxpage, "data": metricsPack})
 	}
-}
\ No newline at end of file
+}