"10": {
"1": {
"std": 0.0,
- "metric": 30551.681364,
- "median": 30551.681364,
+ "metric": 10551.681364,
+ "median": 10551.681364,
"results": [
{
"latency": -1,
},
"2": {
"std": 0.0,
- "metric": 38238.312979,
- "median": 38238.312979,
+ "metric": 28238.312979,
+ "median": 28238.312979,
"results": [
{
"latency": -1,
},
"4": {
"std": 0.0,
- "metric": 35567.822014,
- "median": 35567.822014,
+ "metric": 25567.822014,
+ "median": 25567.822014,
"results": [
{
"latency": -1,
"10": {
"1": {
"std": 0.0,
- "metric": 116.508045,
- "median": 116.508045,
+ "metric": 216.508045,
+ "median": 216.508045,
"results": [
{
"latency": -1,
},
"postgres": {
"commit": "c6736ff76046521f56c50deb31da218bc1b29533",
- "branch": "rel_9_5_stable",
+ "branch": "master",
"settings": {
- "checkpoint_timeout": "20min",
+ "checkpoint_timeout": "15min",
"log_temp_files": "32",
"work_mem": "64MB",
"log_line_prefix": "%n %t ",
- "shared_buffers": "2GB",
+ "shared_buffers": "1GB",
"log_autovacuum_min_duration": "0",
"checkpoint_completion_target": "0.9",
"maintenance_work_mem": "128MB",
"collectd": {},
"meta": {
"date": "2018-07-17 23:02:57.000000+00",
- "uname": "Linux postgresql-gsoc1 4.9.0-6-powerpc64le #1 SMP Debian 4.9.88-1+deb9u1 (2018-05-07) ppc64le GNU/Linux\n",
+ "uname": "Linux postgresql-gsoc 4.9.0-6-powerpc64le #1 SMP Centos 4.9.88-1+deb9u1 (2018-05-07) ppc64le GNU/Linux\n",
"benchmark": "pgbench",
"name": "pgbench-basic"
},
return input
-token = '0ae27ecb064ff5283296b297bac77d9e'
-# BASE_URL = 'http://140.211.168.111:8080/'
-BASE_URL = 'http://127.0.0.1:8000/'
+token = '0232f37f8e1726684516434441af745'
+BASE_URL = 'http://140.211.168.111:8080/'
+# BASE_URL = 'http://127.0.0.1:8000/'
PATH_URL = 'upload/'
url = BASE_URL + PATH_URL
import React from 'react';
-import {hashHistory} from 'React-router'
+import {hashHistory} from 'react-router'
import './index.css';
import {Link} from 'react-router-dom';
import UserInfoCard from 'component/userinfo-card/index.jsx'
_user.farmerApply(machineInfo).then((res) => {
// console.dir(res)
alert('add machine success!')
- hashHistory.push('/portal')
+ //hashHistory.push('/portal')
// window.location.href = this.state.redirect;
}, (err) => {
// console.log(err)
$.ajax({
type: param.type || 'get',
url: param.url || '',
- dataType: param.dataType || 'json',
+ dataType: param.dataType || 'jsonp',
data: param.data || null,
// headers: {
// 'Authorization': 'Token ' + user.token
entry: './src/app.jsx',
output: {
path: path.resolve(__dirname, 'dist'),
- publicPath: WEBPACK_ENV === 'dev' ? '' : '//140.211.168.111/front-end-code/dist/',
+ publicPath: WEBPACK_ENV === 'dev' ? '/dist/' : '//140.211.168.111/front-end-code/dist/',
filename: 'js/app.js'
},
resolve: {
row_data = [
{
'password': '123456',
- 'is_superuser': False,
+ 'is_superuser': True,
'username': 'maleic',
'first_name': 'Maleic',
'last_name': 'Acid',
- 'date_joined': '2018-06-14 21:34:51+08',
+ 'date_joined': '2018-08-10 21:34:51+08',
'is_staff': False,
'is_active': True,
'last_login': '2018-06-14 21:34:51+08',
},
+ {
+ 'password': '123456',
+ 'is_superuser': True,
+ 'username': 'mark',
+ 'first_name': 'Mark',
+ 'last_name': 'Wong',
+ 'date_joined': '2018-08-10 21:34:51+08',
+ 'is_staff': False,
+ 'is_active': True,
+ 'last_login': '2018-06-14 21:34:51+08',
+ },
]
\ No newline at end of file
import sys
import os
-from pgperffarm.settings import PORJECT_PATH
+from path import PORJECT_PATH
# Use django's model independently
pwd = os.path.dirname(os.path.realpath(__file__))
sys.path.append(pwd+ "../")